Skip to content
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

Open
ArnoStrouwen opened this issue Jan 30, 2024 · 2 comments
Open

EnzymeVJP often fails is automatic sensealg determination #1001

ArnoStrouwen opened this issue Jan 30, 2024 · 2 comments
Labels

Comments

@ArnoStrouwen
Copy link
Member

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

@ChrisRackauckas
Copy link
Member

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

@ArnoStrouwen
Copy link
Member Author

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants