-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
EnzymeVJP often fails is automatic sensealg determination #1001
Labels
Comments
Is there an internal alias check? Try changing one of the du's to a copy and see if that fixes it. Other than that, I don't think there's a difference in the vjps, but there must be if that is failing |
Already tried that before, did not work. I'll have to dive deeper into the code. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Deleting the sensealg keyword in e.g. this tutorial:
https://docs.sciml.ai/SciMLSensitivity/dev/examples/optimal_control/optimal_control/
gives the warning that
EnzymeVJP
does not work on the problem.However, manually specifying Enzyme, e.g.
InterpolatingAdjoint(autojacvec = EnzymeVJP)
, seems to work fine.The vjp calculation thus differ in the two places?
A first weird thing I found was the use of
du
in duplicated.https://github.com/SciML/SciMLSensitivity.jl/blob/master/src/concrete_solve.jl#L19
The text was updated successfully, but these errors were encountered: