Skip to content

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

Open
angus-g wants to merge 3 commits into
JHopeCollins/nlvs-hessian-fixfrom
angus-g/4638-solver
Open

Remove explicit annotation on solve() (-> #4638)#5226
angus-g wants to merge 3 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 added 2 commits July 8, 2026 12:40
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).
@angus-g angus-g force-pushed the angus-g/4638-solver branch from fb1c345 to 64c8edb Compare July 8, 2026 02:41
This is redundant now that it gets routed through the usual
cached solver path.

@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.

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