Skip to content

Conversation

@DhairyaLGandhi
Copy link
Member

@DhairyaLGandhi DhairyaLGandhi commented Mar 13, 2025

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

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.

@ChrisRackauckas
Copy link
Member

Rebase?

@DhairyaLGandhi
Copy link
Member Author

@AayushSabharwal the failures don't seem related to the changes in this PR afaict.

@DhairyaLGandhi
Copy link
Member Author

@ChrisRackauckas does this need rebasing again? I noticed some failures on the tests I had added, but that has been resolved since

@AayushSabharwal
Copy link
Member

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

@ChrisRackauckas
Copy link
Member

@DhairyaLGandhi
Copy link
Member Author

This PR is for getting the adjoints through getindex and observable functions with NonlinearSolution

@DhairyaLGandhi
Copy link
Member Author

Test failure on Zygote is FluxML/Zygote.jl#1564

Comment on lines +49 to +56
# @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
Copy link
Member

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?

Copy link
Member Author

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

@ChrisRackauckas ChrisRackauckas merged commit eae18e0 into SciML:master Mar 28, 2025
42 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants