-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Unsupported operation when using CUDA #1532
Comments
As befitting a MWE, it would be better if you could copy the stacktrace from your notebook and paste it in a code block here. Raw Jupyter notebooks are not particularly human-readable. |
Looking at the stacktrace:
I think the problem is in how ForwardDiff.jl handles The good and bad news is that this appears to be an issue with how ForwardDiff handles |
Thank you. I will raise the issue there. |
Motivation and description
UnsupportedOpWithCUDA.txt
The attached is actually a jupyter notebook, but I saved with a .txt extension to upload.
In summary, I defined two functions
f₁(x) = sum(abs2, exp.(log.(x) .* (1:length(x))))
f₂(x) = sum(abs2, x.^(1:length(x)))
Their gradients agree on the CPU. When the argument is on the GPU, the first function's gradient is consistent with the CPU calculation, the later function throws an exception.
Possible Implementation
No response
The text was updated successfully, but these errors were encountered: