You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Enzyme solve_up rule signature to support DuplicatedNoNeed
FixesSciML/SciMLSensitivity.jl#1225
The Enzyme rules for solve_up were failing when sensealg was passed
via the ODEProblem constructor instead of solve(). The issue was that
the return type annotation was restricted to Duplicated{RT}, but Enzyme
can also use DuplicatedNoNeed{RT}.
Changes:
- Updated augmented_primal signature to accept both Duplicated and DuplicatedNoNeed
- Updated reverse signature to accept both Duplicated and DuplicatedNoNeed
- Fixed type handling to extract the inner result type instead of using the annotation type
- Removed incorrect type assertion in reverse function
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments