DiffEqFlux.jl icon indicating copy to clipboard operation
DiffEqFlux.jl copied to clipboard

fix: dependency management

Open avik-pal opened this issue 1 year ago • 2 comments

  • removes dependencies that aren't being used
  • loads DataInterpolations (fixes #935)
  • removes duplicated tests

avik-pal avatar Aug 27 '24 15:08 avik-pal

The remaining failures are from the broken Forward Mode in SciMLSensitivity https://github.com/SciML/SciMLSensitivity.jl/issues/1099.

avik-pal avatar Aug 28 '24 13:08 avik-pal

Still lets wait for the upstream fixes to land before moving ahead with this

avik-pal avatar Aug 28 '24 13:08 avik-pal

Well the upstream fixes are in but 😅. Though I will say I did see this come up when playing around. This is why I asked:

Did ComponentArrays of Tracker always store as Array{TrackedReal} or did it create TrackedArray with views of TrackedArray on sub parts?

When doing ArrayInterface.restructure for the SciMLStructures compatibility, I noticed that TrackedArrays and ComponentArrays didn't mix well. In particular, a TrackedArray on a ComponentArray had the wrappers the wrong way around, and so the indexing didn't work out. And the other way seemed to not make the ComponentArray of TrackedArray structure, but instead TrackedReals. But I know you had to have tried this with Lux before so it must be a recent regression? So what you're seeing there is precisely ArrayInterface.restructure(x::ComponentArray, y::SomethingTracked) going awry, and fixing that behavior is the fix. We don't have a test for that exact case in SciMLSensitivity though, would probably be good to add.

ChrisRackauckas avatar Sep 02 '24 02:09 ChrisRackauckas

So what you're seeing there is precisely ArrayInterface.restructure(x::ComponentArray, y::SomethingTracked) going awry, and fixing that behavior is the fix.

This is not hard to fix, I will do it in ComponentArrays

avik-pal avatar Sep 02 '24 14:09 avik-pal

Once https://github.com/jonniedie/ComponentArrays.jl/pull/269 lands, tests should be green again!

avik-pal avatar Sep 02 '24 19:09 avik-pal