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

Resetting differentiation input in-between differentiations #259

Open
blegat opened this issue Sep 20, 2024 · 1 comment · May be fixed by #262
Open

Resetting differentiation input in-between differentiations #259

blegat opened this issue Sep 20, 2024 · 1 comment · May be fixed by #262

Comments

@blegat
Copy link
Member

blegat commented Sep 20, 2024

In https://discourse.julialang.org/t/differentiating-through-a-qp-order-of-constraints/119275/3, it is argued that the input of the differentiation should be reset in-between different calls to DiffOpt.forward_differentiate!(model).
We should clarify this in the documentation.

@joaquimg
Copy link
Member

#262 solves this by adding: empty_input_sensitivities!

@joaquimg joaquimg linked a pull request Jan 12, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants