Skip to content

Remove explicit annotation on solve() (-> #4638)#5226

Merged
angus-g merged 4 commits into
JHopeCollins/nlvs-hessian-fixfrom
angus-g/4638-solver
Jul 13, 2026
Merged

Remove explicit annotation on solve() (-> #4638)#5226
angus-g merged 4 commits into
JHopeCollins/nlvs-hessian-fixfrom
angus-g/4638-solver

Conversation

@angus-g

@angus-g angus-g commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

We remove the explicit adjoint annotation on the bare solve() call, relying on the path through the NLVS as the single source of annotation. This simplifies and unifies the code paths, and will ideally allow us to remove the specialised solve blocks.

I think test failures here are dealt with by #5188.

@angus-g
angus-g requested a review from JHopeCollins July 8, 2026 02:18
@angus-g angus-g added the base:main Run this PR using a main (dev) build label Jul 8, 2026
@angus-g
angus-g force-pushed the angus-g/4638-solver branch from fb1c345 to 64c8edb Compare July 8, 2026 02:41

@JHopeCollins JHopeCollins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, great. This shouldn't have been a thing anyway. The less code to maintain the better.

angus-g added 4 commits July 13, 2026 15:28
We remove the explicit adjoint annotation on the bare solve() call,
relying on the path through the NLVS as the single source of
annotation. This simplifies and unifies the code paths, and will
ideally allow us to remove the specialised solve blocks.
I don't think this affects anything, but should be there as a
convenience function (referenced in the "extract adjoint solutions"
notebook).
This is redundant now that it gets routed through the usual
cached solver path.
@angus-g
angus-g force-pushed the angus-g/4638-solver branch from ac7c660 to 6dccd06 Compare July 13, 2026 05:28
@angus-g
angus-g merged commit a6672fe into JHopeCollins/nlvs-hessian-fix Jul 13, 2026
3 of 6 checks passed
@angus-g
angus-g deleted the angus-g/4638-solver branch July 13, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

base:main Run this PR using a main (dev) build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants