-
Notifications
You must be signed in to change notification settings - Fork 10
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
Pullback error when summing over a dictionary #130
Comments
This looks like a Zygote bug. f, x = NonconvexCore.getobjective(model), NonconvexCore.getinit(model)
f(x) # works
Zygote.gradient(f, x) # errors |
Nonconvex uses Zygote. Zygote can be surprisingly brittle sometimes. |
Is there a related Zygote bug report? |
The issue seems to be FluxML/Zygote.jl#1065. |
This is now fixed in the latest release of Zygote. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there any guidance on what can and cannot go in an objective function?
Iterating over a dictionary in the objective function seems to break things:
cc @ccoffrin
The text was updated successfully, but these errors were encountered: