-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
onehotbatch(::CuArray, ...)
moves data to host
#16
Comments
I don't think that should be allowed. Taking |
No strong opinions, was just trying to make Flux's tests pass. #17 is more code duplication than ideal. |
Maybe we could remove that test in Flux? |
Also no strong feelings either way, but we if we don't want to support we should add the functionality as deprecated so that it's not a breaking change on the Flux side. |
As seen in #24 the current behavior is surprising when |
onehotbatch(::CuArray, ...)
onehotbatch(::CuArray, ...)
moves data to host
#27 fixes the case |
The lack of FluxML/Flux.jl#1959 causes the following error, currently blocking FluxML/Flux.jl#2025 :
Edit: after #27,
onehotbatch(x |> cu, 0:3)
works, but other ways to specify the labels do not.The text was updated successfully, but these errors were encountered: