Skip to content
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

type ODESolution has no field sc: SciMLBase.getfield(x::SciMLBase.ODESolution #547

Open
prbzrg opened this issue Nov 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@prbzrg
Copy link
Member

prbzrg commented Nov 29, 2023

Describe the bug 🐞

I used JET.@test_call on a function, and it printed an issue related to this package.

Error ⚠️

  β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”Œ getproperty(x::SciMLBase.ODESolution{Float32, 3, Vector{Matrix{Float32}}, Nothing, Nothing, Vector{Float32}, Vector{Vector{Matrix{Float32}}}, SciMLBase.ODEProblem{Matrix{Float32}, Tuple{Float32, Float32}, false, ComponentArrays.ComponentVector{Float32, Vector{Float32}, Tuple{ComponentArrays.Axis{(weight = ViewAxis(1:49, ShapedAxis((7, 7), NamedTuple())), bias = ViewAxis(50:56, ShapedAxis((7, 1), NamedTuple())))}}}, SciMLBase.ODEFunction{false, SciMLBase.FullSpecialize, ContinuousNormalizingFlows.var"#11#14"{RNODE{Float32, ZygoteMatrixMode, false, false, false, Lux.Dense{true, typeof(NNlib.tanh_fast), typeof(WeightInitializers.glorot_uniform), typeof(WeightInitializers.zeros32)}, Int64, ComputationalResources.CPU1{Nothing}, Distributions.MvNormal{Float32, PDMats.ScalMat{Float32}, FillArrays.Zeros{Float32, 1, Tuple{Base.OneTo{Int64}}}}, Tuple{Float32, Float32}, Distributions.Uniform{Float32}, AbstractDifferentiation.ReverseRuleConfigBackend{Zygote.ZygoteRuleConfig{Zygote.Context{false}}}, ADTypes.AutoZygote, NamedTuple{(:alg_hints, :save_everystep, :alg, :sensealg, :reltol, :abstol, :maxiters), Tuple{Vector{Symbol}, Bool, OrdinaryDiffEq.VCABM, SciMLSensitivity.InterpolatingAdjoint{0, true, Val{:central}, SciMLSensitivity.ZygoteVJP}, Float32, Float32, Int32}}, Random.TaskLocalRNG}, TrainMode, Matrix{Float32}, NamedTuple{(), Tuple{}}}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, OrdinaryDiffEq.VCABM, OrdinaryDiffEq.InterpolationData{SciMLBase.ODEFunction{false, SciMLBase.FullSpecialize, ContinuousNormalizingFlows.var"#11#14"{RNODE{Float32, ZygoteMatrixMode, false, false, false, Lux.Dense{true, typeof(NNlib.tanh_fast), typeof(WeightInitializers.glorot_uniform), typeof(WeightInitializers.zeros32)}, Int64, ComputationalResources.CPU1{Nothing}, Distributions.MvNormal{Float32, PDMats.ScalMat{Float32}, FillArrays.Zeros{Float32, 1, Tuple{Base.OneTo{Int64}}}}, Tuple{Float32, Float32}, Distributions.Uniform{Float32}, AbstractDifferentiation.ReverseRuleConfigBackend{Zygote.ZygoteRuleConfig{Zygote.Context{false}}}, ADTypes.AutoZygote, NamedTuple{(:alg_hints, :save_everystep, :alg, :sensealg, :reltol, :abstol, :maxiters), Tuple{Vector{Symbol}, Bool, OrdinaryDiffEq.VCABM, SciMLSensitivity.InterpolatingAdjoint{0, true, Val{:central}, SciMLSensitivity.ZygoteVJP}, Float32, Float32, Int32}}, Random.TaskLocalRNG}, TrainMode, Matrix{Float32}, NamedTuple{(), Tuple{}}}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Vector{Matrix{Float32}}, Vector{Float32}, Vector{Vector{Matrix{Float32}}}, OrdinaryDiffEq.VCABMConstantCache{Vector{Float32}, Vector{Matrix{Float32}}, Matrix{Float32}, Float32, Vector{Float32}}}, SciMLBase.DEStats, Nothing}, s::Symbol) @ SciMLBase /home/runner/.julia/packages/SciMLBase/xja2M/src/solutions/ode_solutions.jl:125
  β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚β”‚ type ODESolution has no field sc: SciMLBase.getfield(x::SciMLBase.ODESolution{Float32, 3, Vector{Matrix{Float32}}, Nothing, Nothing, Vector{Float32}, Vector{Vector{Matrix{Float32}}}, SciMLBase.ODEProblem{Matrix{Float32}, Tuple{Float32, Float32}, false, ComponentArrays.ComponentVector{Float32, Vector{Float32}, Tuple{ComponentArrays.Axis{(weight = ViewAxis(1:49, ShapedAxis((7, 7), NamedTuple())), bias = ViewAxis(50:56, ShapedAxis((7, 1), NamedTuple())))}}}, SciMLBase.ODEFunction{false, SciMLBase.FullSpecialize, ContinuousNormalizingFlows.var"#11#14"{RNODE{Float32, ZygoteMatrixMode, false, false, false, Lux.Dense{true, typeof(NNlib.tanh_fast), typeof(WeightInitializers.glorot_uniform), typeof(WeightInitializers.zeros32)}, Int64, ComputationalResources.CPU1{Nothing}, Distributions.MvNormal{Float32, PDMats.ScalMat{Float32}, FillArrays.Zeros{Float32, 1, Tuple{Base.OneTo{Int64}}}}, Tuple{Float32, Float32}, Distributions.Uniform{Float32}, AbstractDifferentiation.ReverseRuleConfigBackend{Zygote.ZygoteRuleConfig{Zygote.Context{false}}}, ADTypes.AutoZygote, NamedTuple{(:alg_hints, :save_everystep, :alg, :sensealg, :reltol, :abstol, :maxiters), Tuple{Vector{Symbol}, Bool, OrdinaryDiffEq.VCABM, SciMLSensitivity.InterpolatingAdjoint{0, true, Val{:central}, SciMLSensitivity.ZygoteVJP}, Float32, Float32, Int32}}, Random.TaskLocalRNG}, TrainMode, Matrix{Float32}, NamedTuple{(), Tuple{}}}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, SciMLBase.StandardODEProblem}, OrdinaryDiffEq.VCABM, OrdinaryDiffEq.InterpolationData{SciMLBase.ODEFunction{false, SciMLBase.FullSpecialize, ContinuousNormalizingFlows.var"#11#14"{RNODE{Float32, ZygoteMatrixMode, false, false, false, Lux.Dense{true, typeof(NNlib.tanh_fast), typeof(WeightInitializers.glorot_uniform), typeof(WeightInitializers.zeros32)}, Int64, ComputationalResources.CPU1{Nothing}, Distributions.MvNormal{Float32, PDMats.ScalMat{Float32}, FillArrays.Zeros{Float32, 1, Tuple{Base.OneTo{Int64}}}}, Tuple{Float32, Float32}, Distributions.Uniform{Float32}, AbstractDifferentiation.ReverseRuleConfigBackend{Zygote.ZygoteRuleConfig{Zygote.Context{false}}}, ADTypes.AutoZygote, NamedTuple{(:alg_hints, :save_everystep, :alg, :sensealg, :reltol, :abstol, :maxiters), Tuple{Vector{Symbol}, Bool, OrdinaryDiffEq.VCABM, SciMLSensitivity.InterpolatingAdjoint{0, true, Val{:central}, SciMLSensitivity.ZygoteVJP}, Float32, Float32, Int32}}, Random.TaskLocalRNG}, TrainMode, Matrix{Float32}, NamedTuple{(), Tuple{}}}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, Vector{Matrix{Float32}}, Vector{Float32}, Vector{Vector{Matrix{Float32}}}, OrdinaryDiffEq.VCABMConstantCache{Vector{Float32}, Vector{Matrix{Float32}}, Matrix{Float32}, Float32, Vector{Float32}}}, SciMLBase.DEStats, Nothing}, s::Symbol)
  ││││││││││││││││││└────────────────────

Additional context

full stack of it:
impICNF/ContinuousNormalizingFlows.jl#353 (comment)

@prbzrg prbzrg added the bug Something isn't working label Nov 29, 2023
@ChrisRackauckas
Copy link
Member

Can you make an MWE of this? I am unsure what to say about this. There is no field sc, so why would it exist? I'm confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants