We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rand!
This fallback method for rand in Distributions.jl hits this rule, which is declared non-differentiable.
rand
Distributions.jl
This results in a silent failure, where there ought to be an error if the given AD (in my case Zygote), is unable to handle in-place differentiation.
The text was updated successfully, but these errors were encountered:
Xref fill! discussion in #521 .
fill!
Can you explain more what the Distributions example is meant to show? At some level rand! by itself is obviously wrong:
julia> gradient([1,2,3.0]) do x rand!(x) x[1] end ([1.0, 0.0, 0.0],)
but you seem to be saying something more specific.
Sorry, something went wrong.
Can you explain more what the Distributions example is meant to show?
I think I'm essentially saying the thing that you are pointing out, it's just that this is the particular example that was causing me problems.
Successfully merging a pull request may close this issue.
This fallback method for
rand
inDistributions.jl
hits this rule, which is declared non-differentiable.This results in a silent failure, where there ought to be an error if the given AD (in my case Zygote), is unable to handle in-place differentiation.
The text was updated successfully, but these errors were encountered: