Repository navigation
Mark CallbackCache as non-differentiable for Mooncake - #4688
Merged
ChrisRackauckas merged 4 commits intoOct 9, 2026
Merged
ChrisRackauckas merged 4 commits into
ChrisRackauckas merged 4 commits into
Conversation
Member
Author
|
Unlike #4689, this doesn't change the solver, so there are no extra allocations and none of the failures there from building a Neither PR handles callbacks on default problems on Julia 1.12 under |
Member
Author
|
This PR is likely a quicker and smaller focused fix (within the Mooncake ext) for the current AD issue without changes in the core solver. |
This was referenced Oct 5, 2026
ChrisRackauckas
referenced
this pull request
Oct 13, 2026
…inaryDiffEqBDF, OrdinaryDiffEqExplicitRK, OrdinaryDiffEqFIRK, OrdinaryDiffEqFeagin, OrdinaryDiffEqHighOrderRK, OrdinaryDiffEqPDIRK, OrdinaryDiffEqRKN, OrdinaryDiffEqSDIRK, StochasticDiffEqHighOrder, StochasticDiffEqLowOrder, and StochasticDiffEqMilstein for release (#4871) Agent-Harness: Devin CLI 3000.11.3 Agent-Model: Fusion (Claude Opus 5.5 Medium + SWE-2 Medium) Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/flash-hour.json Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
ChrisRackauckas
added a commit
that referenced
this pull request
Oct 14, 2026
Releases #4688 (CallbackCache non-differentiable for Mooncake), the only DiffEqBase change since 7.21.3. SciMLSensitivity Core1 "Mooncake with MooncakeAdjoint" keeps failing until it is registered. Agent-Harness: Claude Code (subagent of ci-green head) Agent-Model: claude-opus-5-5[1m] Agent-Session: https://claude.ai/code/session_011aK5Xvp9NpdkzKuEwtiMGd Co-authored-by: ChrisRackauckas-Claude <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Fixes SciML/SciMLSensitivity.jl#1680.
Since #4376,
ODEIntegrator.callback_cacheisUnion{Nothing, CallbackCache}when callbacks are erased. Mooncake can't build a tangent for that field, soMooncakeAdjointHVPs fail withno constructors have been defined for Any.This gives the
Unionfield no tangent. A concretely typed cache keeps its tangent, so event-time gradients are unaffected, and nothing changes at runtime.Tests: the #1680 HVP, and an event-time gradient through a
VectorContinuousCallback.cc: @ChrisRackauckas , @ChrisRackauckas-Claude