-
-
Notifications
You must be signed in to change notification settings - Fork 608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typical accuracy function using onecold with a OneHotMatrix fails to compile on GPU #582
Comments
i meet the same problem.. Julia Version 1.1.0 CUDN 10 + CUDNN 7.4 |
The PR got reverted, so would be good to reopen. |
This is fixed with all the latest changes to one-hot-related stuff (see #1448) julia> x = rand(Float32, 10, 3) |> gpu;
julia> y = Flux.onehotbatch(1:3, 1:10) |> gpu;
julia> accuracy(x, y) = Flux.onecold(x) .== Flux.onecold(y);
julia> accuracy(x, y)
3-element CuArray{Bool,1}:
1
0
0 |
The following crashes when being compiled to GPU:
The text was updated successfully, but these errors were encountered: