-
Notifications
You must be signed in to change notification settings - Fork 18
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
AD failure where Zygote succeeds #63
Comments
For some reason, |
This causes also #57, I noticed a while ago (#57 (comment)). |
Since there was a request for naming issues related to performance or awkward API in #88 (comment), wanted to bump this since I think it covers both. It also affects more than Zygote (as seen in the many linked issues) and even has (stalled?) PRs trying to address it. |
Fixed by #128. On the master branch I get julia> Zygote.gradient(nt -> nt.x^2, (x=1.,))
((x = 2.0,),)
julia> AD.gradient(AD.ZygoteBackend(), nt -> nt.x^2, (x=1.,))
((x = 2.0,),) |
MWE:
Does this package expect all arguments be scalars/vectors that have an
adjoint
defined? Eg this works:(I'm hoping not because it would definitely hurt usability to not be able to use Zygote's full capability, where that is not a requirement)
The text was updated successfully, but these errors were encountered: