Support forward Jacobians inside Reactant kernels - #3484
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://chatgpt.com/codex/tasks/01a03a07-4f58-7d73-90d2-5e7aa3ba9fd7
Contributor
Author
|
CI audit (2026-08-27): GitHub created the CI, Integration, Documentation, Downgrade, and benchmark workflows, but each is currently Local evidence is in the PR body: the exact test fails against upstream |
Member
|
resolution is in reactant, e.g. EnzymeAD/Reactant.jl#1882 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closed head
At the retained PR head
d4c34bc9, forward-modeEnzyme.jacobianassembled array-valued derivatives with atupstackmethod restricted to ordinaryArrays. The PR added anAbstractArrayfallback usingstackandreshape, while preserving the optimizedArrayspecialization.The exact new test failed against upstream
a865b354and passed on Julia 1.10.12, 1.11.9, and 1.12.6. The focusedsugarsuite passed 226 non-broken assertions, and the ordinary-array benchmark retained 8,984-byte allocation counts.Follow-up investigation
The Enzyme-only follow-up at ChrisRackauckas-Claude@b270a2d is on the fork branch but is not part of this closed PR. It additionally makes chunked forward Jacobians traceable without changing ordinary-array performance. With unmodified DifferentiationInterface main, its out-of-place
AutoEnzymeJacobian passes inside Reactant; DI's generic in-place Jacobian still constructs basis arrays with scalar indexing, so the current NonlinearSolve work retains its direct-pushforward wrapper for that case.No replacement Enzyme PR was opened because the maintainer explicitly selected the Reactant-side solution.
Links
🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03a07-4f58-7d73-90d2-5e7aa3ba9fd7