Remove unused DifferentiationInterface dependency#24
Merged
andrewning merged 2 commits intobyuflowlab:mainfrom Feb 13, 2026
Merged
Remove unused DifferentiationInterface dependency#24andrewning merged 2 commits intobyuflowlab:mainfrom
andrewning merged 2 commits intobyuflowlab:mainfrom
Conversation
NLsolve with autodiff=:forward now uses DifferentiationInterface internally, which has strict type checks in v0.7. When yprev is a SubArray (column view from odesolve), DI's preparation fails with a PreparationMismatchError. Convert to Vector before passing to nlsolve.
Member
|
It is actually used. Not directly, but ForwardDiff, etc. use DifferentiationInterface, and ImplicitAD was not fully working with the latest version of DifferentiationInterface so we had to pin the version of DI. There were a lot of changes happening with DI at the time, but looks like unit tests are passing now without the pin so I'll pull this. |
Contributor
Author
|
Makes sense, thanks! |
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.
Remove unused DifferentiationInterface dependency
Summary
Removes
DifferentiationInterfacefrom both[deps]and[compat]inProject.toml. This package is listed as a dependency but is never imported or used in any source file.This was preventing updating GXBeam.jl
Motivation
DifferentiationInterfacewas added as a dependency in v1.0.0 but no code in ImplicitAD actually uses it -- all AD is done directly throughForwardDiff,ReverseDiff, andChainRulesCore. Having it as a dependency unnecessarily constrains downstream packages (e.g., pinning them to DI 0.6) and increases install/precompile times.This was discovered while upgrading GXBeam.jl from the deprecated
SparseDiffTools.jltoDifferentiationInterface.jl(see GXBeam.jl#136). TheDI = "0.6"compat bound in ImplicitAD prevented GXBeam from using DI 0.7, which is needed for compatibility with the latest SciML ecosystem.Changes
Project.toml: RemovedDifferentiationInterfacefrom[deps]and[compat]No source code changes -- the package was never used.