I am trying to solve a UODE where the neural network uses a tensor-basis neural net. Here are the first few lines of my stack trace (the details are not important since I am not asking you to debug my code ):
ERROR: MethodError: no method matching init(::Nothing, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; sensealg::InterpolatingAdjoint{0, true, Val{:central}, ReverseDiffVJP{true}}, saveat::Float64)
Closest candidates are:
init(::OptimizationProblem, ::Any, ::Any...; kwargs...)
@ SciMLBase ~/.julia/packages/SciMLBase/VdcHg/src/solve.jl:146
init(::PDEProblem, ::SciMLBase.AbstractDEAlgorithm, ::Any...; kwargs...)
@ DiffEqBase ~/.julia/packages/DiffEqBase/ihYDa/src/solve.jl:1011
init(::SciMLBase.AbstractJumpProblem, ::Any...; kwargs...)
@ DiffEqBase ~/.julia/packages/DiffEqBase/ihYDa/src/solve.jl:441
...
Stacktrace:
[1] macro expansion
@ ~/.julia/packages/Zygote/SuKWp/src/compiler/interface2.jl:0 [inlined]
[2] _pullback(::Zygote.Context{false}, ::typeof(Core.kwcall), ::NamedTuple{(:sensealg, :saveat), Tuple{InterpolatingAdjoint{0, true, Val{:central}, ReverseDiffVJP{true}}, Float64}}, ::typeof(init), ::Nothing, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False})
@ Zygote ~/.julia/packages/Zygote/SuKWp/src/compiler/interface2.jl:9
[3] _apply(::Function, ::Vararg{Any})
@ Core ./boot.jl:838
The first line is clear enough:
ERROR: MethodError: no method matching init(::Nothing, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; sensealg::InterpolatingAdjoint{0, true, Val{:central}, ReverseDiffVJP{true}}, saveat::Float64)
I followed the very long trace, and I did not find the specific line where this function was executed, and therefore, the error is hard to fix. Given the very long trace, it is hard to believe that this line is not available to the stack trace.
Perhaps there is too much inlining going on. Is it possible to run Julia from the command line with options such that inlining is disabled? That might help. Thanks.