-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: add doc example for implementing the interface #28
Conversation
Runs into ERROR: MethodError: no method matching length(::Parameters{Vector{SubproblemParameters{Float64, Float64, Float64}}, Matrix{Float64}})
The function `length` exists, but no method is defined for this combination of argument types.
Closest candidates are:
length(::Base.MethodSpecializations)
@ Base reflection.jl:1317
length(::LLVM.VectorType)
@ LLVM ~/.julia/packages/LLVM/joxPv/src/core/type.jl:382
length(::DataStructures.SparseIntSet)
@ DataStructures ~/.julia/packages/DataStructures/95DJa/src/sparse_int_set.jl:61
...
Stacktrace:
[1] (::SciMLSensitivity.var"#330#339"{…})()
@ SciMLSensitivity ~/.julia/packages/SciMLSensitivity/XCu1T/src/concrete_solve.jl:838
[2] unthunk
@ ~/.julia/packages/ChainRulesCore/6Pucz/src/tangent_types/thunks.jl:205 [inlined]
[3] wrap_chainrules_output
@ ~/.julia/packages/Zygote/NRp5C/src/compiler/chainrules.jl:110 [inlined]
[4] map
@ ./tuple.jl:357 [inlined]
[5] map (repeats 3 times)
@ ./tuple.jl:358 [inlined]
[6] wrap_chainrules_output
@ ~/.julia/packages/Zygote/NRp5C/src/compiler/chainrules.jl:111 [inlined]
[7] ZBack
@ ~/.julia/packages/Zygote/NRp5C/src/compiler/chainrules.jl:212 [inlined]
[8] #294
@ ~/.julia/packages/Zygote/NRp5C/src/lib/lib.jl:206 [inlined]
[9] (::Zygote.var"#2276#back#296"{…})(Δ::ODESolution{…})
@ Zygote ~/.julia/packages/ZygoteRules/M4xmc/src/adjoint.jl:72
[10] #solve#51
@ ~/.julia/packages/DiffEqBase/ODi5x/src/solve.jl:1015 [inlined]
[11] (::Zygote.Pullback{…})(Δ::ODESolution{…})
@ Zygote ~/.julia/packages/Zygote/NRp5C/src/compiler/interface2.jl:0
[12] #294
@ ~/.julia/packages/Zygote/NRp5C/src/lib/lib.jl:206 [inlined]
[13] #2276#back
@ ~/.julia/packages/ZygoteRules/M4xmc/src/adjoint.jl:72 [inlined]
[14] solve
@ ~/.julia/packages/DiffEqBase/ODi5x/src/solve.jl:1005 [inlined]
[15] (::Zygote.Pullback{…})(Δ::ODESolution{…})
@ Zygote ~/.julia/packages/Zygote/NRp5C/src/compiler/interface2.jl:0
[16] #68
@ ./REPL[58]:3 [inlined]
[17] (::Zygote.Pullback{Tuple{…}, Tuple{…}})(Δ::Float64)
@ Zygote ~/.julia/packages/Zygote/NRp5C/src/compiler/interface2.jl:0
[18] (::Zygote.var"#78#79"{Zygote.Pullback{Tuple{…}, Tuple{…}}})(Δ::Float64)
@ Zygote ~/.julia/packages/Zygote/NRp5C/src/compiler/interface.jl:91
[19] gradient(f::Function, args::Parameters{Vector{SubproblemParameters{Float64, Float64, Float64}}, Matrix{Float64}})
@ Zygote ~/.julia/packages/Zygote/NRp5C/src/compiler/interface.jl:148
[20] top-level scope
@ REPL[58]:1
Some type information was truncated. Use `show(err)` to see complete types. |
@DhairyaLGandhi can you look into this? |
Yes, let me take a look |
Hello, is it possible to add an example that also includes Moreover, what if I have different |
I'll add
Basically yeah.
Yes, they need to be flattened and concatenated.
They need to be concatenated into one type-unstable array |
What's left here? |
I have the doc changes ready, SciMLSensitivity needs a tag |
All of the SciMLStructures changes that were ready were tagged last week? |
ab65e83
to
0310dd4
Compare
🎉 |
Close #23
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.