-
-
Notifications
You must be signed in to change notification settings - Fork 114
Adjoint through getindex(::NonlinearSolution, sym)
#952
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
Conversation
|
Rebase? |
|
@AayushSabharwal the failures don't seem related to the changes in this PR afaict. |
|
@ChrisRackauckas does this need rebasing again? I noticed some failures on the tests I had added, but that has been resolved since |
|
This does need a rebase. MTK and Catalyst downstream should pass. We should also split the MTK workflow, since otherwise it will take ~3 hours |
|
isn't https://github.com/SciML/SciMLBase.jl/actions/runs/14102757384/job/39502400404?pr=952#step:6:1683 supposed to be solvd by it? |
|
This PR is for getting the adjoints through |
|
Test failure on Zygote is FluxML/Zygote.jl#1564 |
| # @testset "AD Observable Functions for Initialization" begin | ||
| # iprob = prob.f.initialization_data.initalizeprob | ||
| # isol = solve(iprob) | ||
| # gs, = gradient(isol) do isol | ||
| # isol[w] | ||
| # end | ||
|
|
||
| # end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this will be enabled later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this requires SciML/SciMLSensitivity.jl#1168
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
The current dispatches do not work for the NonlinearSolution type. Needed for getting initialization working since all the unknowns and parameters in an initialization problem are converted to observables internally.