You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @pitx-perf,
Thanks for reporting this. Indeed, AutoFastDifferentiation is one of those backends which require any Constant or Cache to be either a Number or an AbstractArray (as hinted in the Constant docstring for example). I just haven't had time to implement more flexibility, because I didn't think anyone was actually using the symbolic backends in sophisticated way. Do you want to try and contribute a fix? I'd be happy to guide you, and it's good for me to get more people familiar with the DI code.
Hi @gdalle,
Yes I'd be happy to contribute to a fix. I definitely need some time to get familiar with both DI and FastDifferentiation beforehand.
I faced this issue just trying several backends. No idea if FastDifferentiation is actually suited for my problem.
Issue
AutoFastDifferentiation is not able to deal with a NamedTuple context which could happen when the parameters of an optimization is a NamedTuple.
The error message:
MWE
Example taken from Optimization.jl, and modified to have a NamedTuple as p and use AutoFastDifferentiation
AutoForwardDiff works fine.
The text was updated successfully, but these errors were encountered: