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
Recently, my scripts I was using to try and get derivatives of ODE solutions from models created with ModelingToolkit.jl have failed with the error:
ERROR: LoadError: Compiling Tuple{Type{Dict}, Base.Iterators.Zip{Tuple{Vector{Sym{Real, Base.ImmutableDict{DataType, Any}}}, Vector{Float64}}}}:try/catch is not supported.
Refer to the Zygote documentation for fixes.
https://fluxml.ai/Zygote.jl/latest/limitations
Looks like this was caused by a change on the SciML side: SciML/SciMLBase.jl@6249468. You could ask them to implement the suggestion in #1293 (comment) and see if that works.
@Antomek, do you find a way around this? I need to get Zygote.hessian of a loss function involving forward simulations of ODE defined using ModelingToolkit and ran into the same error.
Package Version
Zygote v0.6.49, ModelingToolkit v8.29.1
Julia Version
Julia Version 1.8.2
OS / Environment
macOS Monterey 12.6
Describe the bug
Recently, my scripts I was using to try and get derivatives of ODE solutions from models created with ModelingToolkit.jl have failed with the error:
which is related to this issue, I imagine.
Steps to Reproduce
MWE:
Expected Results
I expected to get the gradient of the sum w.r.t.
u0
andp
.Observed Results
I get the following error:
Relevant log output
No response
The text was updated successfully, but these errors were encountered: