Closed m-bossart closed 4 months ago
As is probably expected, adding looseTypeAnalysis!(true)
makes this work, however increasing the maxtypedepth
or maxtypeoffset
did not.
This can be mitigated by explicitly indicating the level of specialization when building the ODEFunction (e.g.
ODEFunction{true, SciMLBase.AutoSpecialize}
)
This example of differentiating a function that builds and solves an
ODEProblem
works:If instead, I build an
ODEFunction
based onf
(with no additional inputs), then autodiff fails:The start of the error indicates that enzyme cannot deduce the type due to this addition:
This issue is similar to #1459 in that it attempts to cover more cases of solving ODEs within the SciML ecosystem. Please let me know if these issues belong in SciMLSensitivity.