You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We'd have to figure out what level to intercept the OneHotArray: logitcrossentropy, logsoftmax, etc. For the latter, were https://github.com/FluxML/OneHotArrays.jl to be registered and Flux to use it, then NNlibCUDA could add dispatches for it.
In common practice, ŷ should be a dense array and not a one-hot one. If you do that, the function should work. I'd be more interested in what use cases can make use of one-hot encoded predictions (as opposed to just targets) for the loss calculation.
I am having issues with logitcrossentropy calculated on two onehotmatrix variables on GPU. Here is my code
The last lines gives the following error
If I create a CuArray virtually the same as a onehotencoded matrix for example with
ŷ = (CUDA.rand(size(y)...) .< 0.5 ) .* 1.
I don't get an error.The text was updated successfully, but these errors were encountered: