-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't differentiate an ODE solver due to lack of isnan and other type errors. #73
Comments
Running the above, the error is
|
If I go ahead and try to define isnan, (you can uncomment 4 lines near the top of the MWE), the error becomes
Element type: Some of the types have been truncated in the stacktrace for improved reading. To emit complete information Stacktrace:
|
This is identified previously: #35, due to the type system inconsistency issues. Unfortunately I haven't figured out a good way to handle this... |
Ok I now believe not |
Fixed in latest version 0.2.2 |
I'm still getting this error with the above MWE:
|
Oh that's a problem with codegen. I will run you example and make it work tomorrow |
Ok so I fixed a minor problem related to convert special tangent types at ChainRules. Now they should be fine julia> ForwardDiff.derivative(just_t, 1.0)
14.778112197861631
julia> TaylorDiff.derivative(just_t, 1.0, 1)
14.77811219786163 |
TaylorDiff.jl seems to throw an error when I try to differentiate a fairly simple ODE solver. There is an error on the MTK side, but even after the workaround there (See https://discourse.julialang.org/t/error-trying-to-forwarddiff-through-an-ode-solver/114339/6) I can't get Taylor diff.jl to work.
MWE:
The text was updated successfully, but these errors were encountered: