Created
June 15, 2022 01:24
-
-
Save ChrisRackauckas/2861111912ec3b3f7ec4d7cd74e9567e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: MethodError: Cannot `convert` an object of type Float32 to an object of type Vector{Float32} | |
Closest candidates are: | |
convert(::Type{Array{T, N}}, ::SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} at C:\Users\accou\.julia\packages\StaticArrays\0T5rI\src\SizedArray.jl:121 | |
convert(::Type{Array{T, N}}, ::SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} at C:\Users\accou\.julia\packages\StaticArrays\0T5rI\src\SizedArray.jl:115 | |
convert(::Type{<:Array}, ::LabelledArrays.LArray) at C:\Users\accou\.julia\packages\LabelledArrays\lfn1b\src\larray.jl:133 | |
... | |
Stacktrace: | |
[1] setproperty!(x::OrdinaryDiffEq.ODEIntegrator{Tsit5, false, Vector{Float32}, Float32}, f::Symbol, v::Float32) | |
@ Base .\Base.jl:43 | |
[2] initialize!(integrator::OrdinaryDiffEq.ODEIntegrator{Tsit5, false, Vector{Float32}, Float32}) | |
@ OrdinaryDiffEq C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\perform_step\low_order_rk_perform_step.jl:569 | |
[3] __init(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction, Base.Pairs, alg::Tsit5, timeseries_init::Tuple{}, ts_init::Tuple{}, ks_init::Tuple{}, recompile::Type{Val{true}}; saveat::Tuple{}, tstops::Tuple{}, d_discontinuities::Tuple{}, save_idxs::Nothing, save_everystep::Bool, save_on::Bool, save_start::Bool, save_end::Bool, callback::Nothing, dense::Bool, calck::Bool, dt::Float32, dtmin::Nothing, dtmax::Float32, force_dtmin::Bool, adaptive::Bool, gamma::Rational{Int64}, abstol::Nothing, reltol::Nothing, qmin::Rational{Int64}, qmax::Int64, qsteady_min::Int64, qsteady_max::Int64, beta1::Nothing, beta2::Nothing, qoldinit::Rational{Int64}, controller::Nothing, fullnormalize::Bool, failfactor::Int64, maxiters::Int64, internalnorm::typeof(DiffEqBase.ODE_DEFAULT_NORM), internalopnorm::typeof(LinearAlgebra.opnorm), isoutofdomain::typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), unstable_check::typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), verbose::Bool, timeseries_errors::Bool, dense_errors::Bool, advance_to_tstop::Bool, stop_at_next_tstop::Bool, initialize_save::Bool, progress::Bool, progress_steps::Int64, progress_name::String, progress_message::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), userdata::Nothing, allow_extrapolation::Bool, initialize_integrator::Bool, alias_u0::Bool, alias_du0::Bool, initializealg::OrdinaryDiffEq.DefaultInit, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:save_noise,), Tuple{Bool}}}) | |
@ OrdinaryDiffEq C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\solve.jl:456 | |
[4] #__solve#502 | |
@ C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\solve.jl:4 [inlined] | |
[5] #solve_call#28 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:428 [inlined] | |
[6] solve_up(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction, sensealg::Nothing, u0::Vector{Float32}, p::Vector{Float32}, args::Tsit5; kwargs::Base.Pairs) | |
@ DiffEqBase C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:726 | |
[7] #solve#29 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:710 [inlined] | |
[8] _concrete_solve_adjoint(::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction, ::Tsit5, ::InterpolatingAdjoint{0, true, ZygoteVJP}, ::Vector{Float32}, ::Vector{Float32}; save_start::Bool, save_end::Bool, saveat::StepRangeLen{Float32, Float64, Float64, Int64}, save_idxs::Nothing, kwargs::Base.Pairs) | |
@ DiffEqSensitivity C:\Users\accou\.julia\packages\DiffEqSensitivity\SjURy\src\concrete_solve.jl:131 | |
[9] #_concrete_solve_adjoint#222 | |
@ C:\Users\accou\.julia\packages\DiffEqSensitivity\SjURy\src\concrete_solve.jl:63 [inlined] | |
[10] _solve_adjoint(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction, sensealg::Nothing, u0::Vector{Float32}, p::Vector{Float32}, args::Tsit5; merge_callbacks::Bool, kwargs::Base.Pairs) | |
@ DiffEqBase C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:1069 | |
[11] #rrule#50 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:1032 [inlined] | |
[12] chain_rrule_kw | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\chainrules.jl:229 [inlined] | |
[13] macro expansion | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 [inlined] | |
[14] _pullback | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:9 [inlined] | |
[15] _apply | |
@ .\boot.jl:814 [inlined] | |
[16] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[17] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[18] _pullback | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:710 [inlined] | |
[19] _pullback(::Zygote.Context, ::DiffEqBase.var"##solve#29", ::Nothing, ::Vector{Float32}, ::Vector{Float32}, ::Base.Pairs, ::typeof(solve), ::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction, ::Tsit5) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[20] _apply(::Function, ::Vararg{Any}) | |
@ Core .\boot.jl:814 | |
[21] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[22] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[23] _pullback | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:705 [inlined] | |
[24] _pullback(::Zygote.Context, ::CommonSolve.var"#solve##kw", ::NamedTuple{(:u0, :p, :saveat), Tuple{Vector{Float32}, Vector{Float32}, StepRangeLen{Float32, Float64, Float64, Int64}}}, ::typeof(solve), ::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction, ::Tsit5) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[25] _pullback | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:23 [inlined] | |
[26] _pullback(::Zygote.Context, ::typeof(predict_n_ode)) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[27] _pullback | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:27 [inlined] | |
[28] _pullback(::Zygote.Context, ::typeof(loss_n_ode)) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[29] _apply | |
@ .\boot.jl:814 [inlined] | |
[30] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[31] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[32] _pullback | |
@ C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:120 [inlined] | |
[33] _pullback(::Zygote.Context, ::Flux.Optimise.var"#37#40") | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[34] pullback(f::Function, ps::Zygote.Params) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface.jl:352 | |
[35] gradient(f::Function, args::Zygote.Params) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface.jl:75 | |
[36] macro expansion | |
@ C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:119 [inlined] | |
[37] macro expansion | |
@ C:\Users\accou\.julia\packages\ProgressLogging\6KXlp\src\ProgressLogging.jl:328 [inlined] | |
[38] train!(loss::Function, ps::Zygote.Params, data::Base.Iterators.Take, opt::ADAM; cb::var"#14#16") | |
@ Flux.Optimise C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:117 | |
[39] top-level scope | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:48 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ERROR: MethodError: Cannot `convert` an object of type Float32 to an object of type Vector{Float32} | |
Closest candidates are: | |
convert(::Type{Array{T, N}}, ::SizedArray{S, T, N, N, Array{T, N}}) where {S, T, N} at C:\Users\accou\.julia\packages\StaticArrays\0T5rI\src\SizedArray.jl:121 | |
convert(::Type{Array{T, N}}, ::SizedArray{S, T, N, M, TData} where {M, TData<:AbstractArray{T, M}}) where {T, S, N} at C:\Users\accou\.julia\packages\StaticArrays\0T5rI\src\SizedArray.jl:115 | |
convert(::Type{<:Array}, ::LabelledArrays.LArray) at C:\Users\accou\.julia\packages\LabelledArrays\lfn1b\src\larray.jl:133 | |
... | |
Stacktrace: | |
[1] setproperty!(x::OrdinaryDiffEq.ODEIntegrator{Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, false, Vector{Float32}, Nothing, Float32, Vector{Float32}, Float32, Float32, Float32, Float32, Vector{Vector{Float32}}, ODESolution{Float32, 2, Vector{Vector{Float32}}, Nothing, Nothing, Vector{Float32}, Vector{Vector{Vector{Float32}}}, ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, OrdinaryDiffEq.InterpolationData{ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Vector{Vector{Float32}}, Vector{Float32}, Vector{Vector{Vector{Float32}}}, OrdinaryDiffEq.Tsit5ConstantCache{Float32, Float32}}, DiffEqBase.DEStats}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, OrdinaryDiffEq.Tsit5ConstantCache{Float32, Float32}, OrdinaryDiffEq.DEOptions{Float32, Float32, Float32, Float32, PIController{Rational{Int64}}, typeof(DiffEqBase.ODE_DEFAULT_NORM), typeof(LinearAlgebra.opnorm), Bool, CallbackSet{Tuple{}, Tuple{}}, typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, Nothing, Nothing, Int64, Tuple{}, Tuple{}, Tuple{}}, Vector{Float32}, Float32, Nothing, OrdinaryDiffEq.DefaultInit}, f::Symbol, v::Float32) | |
@ Base .\Base.jl:43 | |
[2] initialize!(integrator::OrdinaryDiffEq.ODEIntegrator{Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, false, Vector{Float32}, Nothing, Float32, Vector{Float32}, Float32, Float32, Float32, Float32, Vector{Vector{Float32}}, ODESolution{Float32, 2, Vector{Vector{Float32}}, Nothing, Nothing, Vector{Float32}, Vector{Vector{Vector{Float32}}}, ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, OrdinaryDiffEq.InterpolationData{ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Vector{Vector{Float32}}, Vector{Float32}, Vector{Vector{Vector{Float32}}}, OrdinaryDiffEq.Tsit5ConstantCache{Float32, Float32}}, DiffEqBase.DEStats}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, OrdinaryDiffEq.Tsit5ConstantCache{Float32, Float32}, OrdinaryDiffEq.DEOptions{Float32, Float32, Float32, Float32, PIController{Rational{Int64}}, typeof(DiffEqBase.ODE_DEFAULT_NORM), typeof(LinearAlgebra.opnorm), Bool, CallbackSet{Tuple{}, Tuple{}}, typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, Nothing, Nothing, Int64, Tuple{}, Tuple{}, Tuple{}}, Vector{Float32}, Float32, Nothing, OrdinaryDiffEq.DefaultInit}, cache::OrdinaryDiffEq.Tsit5ConstantCache{Float32, Float32}) | |
@ OrdinaryDiffEq C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\perform_step\low_order_rk_perform_step.jl:569 | |
[3] __init(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, alg::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, timeseries_init::Tuple{}, ts_init::Tuple{}, ks_init::Tuple{}, recompile::Type{Val{true}}; saveat::Tuple{}, tstops::Tuple{}, d_discontinuities::Tuple{}, save_idxs::Nothing, save_everystep::Bool, save_on::Bool, save_start::Bool, save_end::Bool, callback::Nothing, dense::Bool, calck::Bool, dt::Float32, dtmin::Nothing, dtmax::Float32, force_dtmin::Bool, adaptive::Bool, gamma::Rational{Int64}, abstol::Nothing, reltol::Nothing, qmin::Rational{Int64}, qmax::Int64, qsteady_min::Int64, qsteady_max::Int64, beta1::Nothing, beta2::Nothing, qoldinit::Rational{Int64}, controller::Nothing, fullnormalize::Bool, failfactor::Int64, maxiters::Int64, internalnorm::typeof(DiffEqBase.ODE_DEFAULT_NORM), internalopnorm::typeof(LinearAlgebra.opnorm), isoutofdomain::typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), unstable_check::typeof(DiffEqBase.ODE_DEFAULT_UNSTABLE_CHECK), verbose::Bool, timeseries_errors::Bool, dense_errors::Bool, advance_to_tstop::Bool, stop_at_next_tstop::Bool, initialize_save::Bool, progress::Bool, progress_steps::Int64, progress_name::String, progress_message::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), userdata::Nothing, allow_extrapolation::Bool, initialize_integrator::Bool, alias_u0::Bool, alias_du0::Bool, initializealg::OrdinaryDiffEq.DefaultInit, kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol}, NamedTuple{(:save_noise,), Tuple{Bool}}}) | |
@ OrdinaryDiffEq C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\solve.jl:456 | |
[4] #__solve#502 | |
@ C:\Users\accou\.julia\packages\OrdinaryDiffEq\ZgJ9s\src\solve.jl:4 [inlined] | |
[5] #solve_call#28 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:428 [inlined] | |
[6] solve_up(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, sensealg::Nothing, u0::Vector{Float32}, p::Vector{Float32}, args::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; kwargs::Base.Pairs{Symbol, Bool, Tuple{Symbol, Symbol, Symbol}, NamedTuple{(:save_noise, :save_start, :save_end), Tuple{Bool, Bool, Bool}}}) | |
@ DiffEqBase C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:726 | |
[7] #solve#29 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:710 [inlined] | |
[8] _concrete_solve_adjoint(::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, Vector{Float32}, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}, ::InterpolatingAdjoint{0, true, Val{:central}, ZygoteVJP, Bool}, ::Vector{Float32}, ::Vector{Float32}; save_start::Bool, save_end::Bool, saveat::StepRangeLen{Float32, Float64, Float64, Int64}, save_idxs::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) | |
@ DiffEqSensitivity C:\Users\accou\.julia\packages\DiffEqSensitivity\SjURy\src\concrete_solve.jl:131 | |
[9] #_concrete_solve_adjoint#222 | |
@ C:\Users\accou\.julia\packages\DiffEqSensitivity\SjURy\src\concrete_solve.jl:63 [inlined] | |
[10] _solve_adjoint(prob::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, sensealg::Nothing, u0::Vector{Float32}, p::Vector{Float32}, args::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}; merge_callbacks::Bool, kwargs::Base.Pairs{Symbol, StepRangeLen{Float32, Float64, Float64, Int64}, Tuple{Symbol}, NamedTuple{(:saveat,), Tuple{StepRangeLen{Float32, Float64, Float64, Int64}}}}) | |
@ DiffEqBase C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:1069 | |
[11] #rrule#50 | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:1032 [inlined] | |
[12] chain_rrule_kw | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\chainrules.jl:229 [inlined] | |
[13] macro expansion | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 [inlined] | |
[14] _pullback | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:9 [inlined] | |
[15] _apply | |
@ .\boot.jl:814 [inlined] | |
[16] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[17] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[18] _pullback | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:710 [inlined] | |
[19] _pullback(::Zygote.Context, ::DiffEqBase.var"##solve#29", ::Nothing, ::Vector{Float32}, ::Vector{Float32}, ::Base.Pairs{Symbol, StepRangeLen{Float32, Float64, Float64, Int64}, Tuple{Symbol}, NamedTuple{(:saveat,), Tuple{StepRangeLen{Float32, Float64, Float64, Int64}}}}, ::typeof(solve), ::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[20] _apply(::Function, ::Vararg{Any}) | |
@ Core .\boot.jl:814 | |
[21] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[22] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[23] _pullback | |
@ C:\Users\accou\.julia\packages\DiffEqBase\hZncn\src\solve.jl:705 [inlined] | |
[24] _pullback(::Zygote.Context, ::CommonSolve.var"#solve##kw", ::NamedTuple{(:u0, :p, :saveat), Tuple{Vector{Float32}, Vector{Float32}, StepRangeLen{Float32, Float64, Float64, Int64}}}, ::typeof(solve), ::ODEProblem{Vector{Float32}, Tuple{Float32, Float32}, false, SciMLBase.NullParameters, ODEFunction{false, typeof(dudt), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, ::Tsit5{typeof(OrdinaryDiffEq.trivial_limiter!), typeof(OrdinaryDiffEq.trivial_limiter!), Static.False}) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[25] _pullback | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:23 [inlined] | |
[26] _pullback(::Zygote.Context, ::typeof(predict_n_ode)) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[27] _pullback | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:27 [inlined] | |
[28] _pullback(::Zygote.Context, ::typeof(loss_n_ode)) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[29] _apply | |
@ .\boot.jl:814 [inlined] | |
[30] adjoint | |
@ C:\Users\accou\.julia\packages\Zygote\DkIUK\src\lib\lib.jl:204 [inlined] | |
[31] _pullback | |
@ C:\Users\accou\.julia\packages\ZygoteRules\AIbCs\src\adjoint.jl:65 [inlined] | |
[32] _pullback | |
@ C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:120 [inlined] | |
[33] _pullback(::Zygote.Context, ::Flux.Optimise.var"#37#40"{typeof(loss_n_ode), Tuple{}}) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface2.jl:0 | |
[34] pullback(f::Function, ps::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}}) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface.jl:352 | |
[35] gradient(f::Function, args::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}}) | |
@ Zygote C:\Users\accou\.julia\packages\Zygote\DkIUK\src\compiler\interface.jl:75 | |
[36] macro expansion | |
@ C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:119 [inlined] | |
[37] macro expansion | |
@ C:\Users\accou\.julia\packages\ProgressLogging\6KXlp\src\ProgressLogging.jl:328 [inlined] | |
[38] train!(loss::Function, ps::Zygote.Params{Zygote.Buffer{Any, Vector{Any}}}, data::Base.Iterators.Take{Base.Iterators.Repeated{Tuple{}}}, opt::ADAM; cb::var"#14#16") | |
@ Flux.Optimise C:\Users\accou\.julia\packages\Flux\js6mP\src\optimise\train.jl:117 | |
[39] top-level scope | |
@ c:\Users\accou\OneDrive\Computer\Desktop\test.jl:48 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment