Open baggepinnen opened 2 years ago
The following model (a simplified version of https://github.com/TuringLang/Bijectors.jl/issues/169) throws a method error with v0.18.0 of Turing
using LinearAlgebra using Turing q_m = randn(6,100) trq_m = randn(6,100) qd_m = randn(6,100) k_nom = 10.0 k_sigma = 10.0 co_nom = 1e-8 co_sigma = 1.8 bl_nom = 0.005 bl_sigma = 1.2 tf_cp_nom = randn(4,4) bp_cp_nom = randn(10) bp_cp_sigma = 0.02 c_bart_nom = 1e-8 c_bart_sigma = 1.8 c_flint_nom = 1e-8 c_flint_sigma = 1.8 sigmoid_a = 90.0 sigmoid_b = 0.06 froon_ub = 2*(exp.(-sigmoid_a*(qd_m.+sigmoid_b)).+1).^-1 .- 1 .+ 1e-3 froon_lb = 2*(exp.(-sigmoid_a*(qd_m.-sigmoid_b)).+1).^-1 .- 1 sigma_froon = 0.5 sigma_q_m = 2.0 froon_nom = [0.7, 0.5, 0.3, 0.25, 0.25, 0.15] @model function model(trq_m, q_m) xyz ~ filldist(TruncatedNormal(k_nom, k_sigma, 0.0, Inf), 6) co ~ filldist(LogNormal(log(co_nom), co_sigma), 6) bl ~ filldist(LogNormal(log(bl_nom), bl_sigma), 6) friz ~ arraydist(TruncatedNormal.(froon_nom, 2.0, 0.0, Inf)) bp_cp ~ MvNormal(bp_cp_nom, 0.01) c_bart ~ filldist(LogNormal(log(c_bart_nom), c_bart_sigma), 6) c_flint ~ filldist(LogNormal(log(c_flint_nom), c_flint_sigma), 6) parvec = [xyz.^-1; co; bl; friz; bp_cp; c_bart; c_flint] coul_froon ~ arraydist(Uniform.(froon_lb, froon_ub)) n = size(trq_m, 2) qdist = map(1:n) do j q_a_calc = sum(sum, [trq_m[:, j], parvec, coul_froon[:, j]]) MvNormal(q_a_calc .* ones(6), sigma_q_m) end q_m ~ arraydist(qdist) return q_m end using Turing: Variational m = model(trq_m, q_m) advi = ADVI(10, 1000) q = vi(m, advi)
The stack trace is enormous, but here's the first couple of stack frames
┌ Info: [ADVI] Should only be seen once: optimizer created for θ └ objectid(θ) = 0x7326b2e148021091 ERROR: LoadError: MethodError: no method matching (::Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2})(::Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}) Closest candidates are: (::Inverse{var"#s112", N} where {var"#s112"<:(Bijectors.TruncatedBijector{2, T1, T2} where {T1, T2}), N})(::AbstractMatrix{var"#s111"} where var"#s111"<:Real) at /home/fredrikb/.julia/packages/Bijectors/vtZ9p/src/bijectors/truncated.jl:90 (::Inverse{var"#s112", N} where {var"#s112"<:(Bijectors.TruncatedBijector{2, T1, T2} where {T1, T2}), N})(::AbstractArray{var"#s111", N} where {var"#s111"<:(AbstractMatrix{var"#s110"} where var"#s110"<:Real), N}) at /home/fredrikb/.julia/packages/Bijectors/vtZ9p/src/bijectors/truncated.jl:101 Stacktrace: [1] forward(b::Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}, x::Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}) @ Bijectors ~/.julia/packages/Bijectors/vtZ9p/src/interface.jl:102 [2] macro expansion @ ~/.julia/packages/Bijectors/vtZ9p/src/bijectors/stacked.jl:0 [inlined] [3] forward(b::Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}, x::Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}) @ Bijectors ~/.julia/packages/Bijectors/vtZ9p/src/bijectors/stacked.jl:141 [4] _forward(td::MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}, Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, x::Vector{ForwardDiff.Dual{ForwardDiff.Tag{AdvancedVI.var"#f#19"{AdvancedVI.ELBO, ADVI{AdvancedVI.ForwardDiffAD{40}}, MultivariateTransformed{DistributionsAD.TuringDiagMvNormal{Vector{Float64}, Vector{Float64}}, Stacked{Tuple{Inverse{Bijectors.TruncatedBijector{1, Float64, Float64}, 1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{1, Vector{Float64}, Vector{Float64}}, 1}, Identity{1}, Bijectors.Exp{1}, Bijectors.Exp{1}, Inverse{Bijectors.TruncatedBijector{2, Matrix{Float64}, Matrix{Float64}}, 2}}, NTuple{8, UnitRange{Int64}}}}, Turing.Variational.var"#logπ#2"{DynamicPPL.Model{typeof(model), (:trq_m, :q_m), (), (), Tuple{Matrix{Float64}, Matrix{Float64}}, Tuple{}, DynamicPPL.DefaultContext}, DynamicPPL.TypedVarInfo{NamedTuple{(:xyz, :co, :bl, :friz, :bp_cp, :c_bart, :c_flint, :coul_froon), Tuple{DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:xyz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, FillArrays.Fill{Truncated{Normal{Float64}, Continuous, Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:xyz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:co, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:co, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bl, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:bl, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:friz, Tuple{}}, Int64}, Vector{Product{Continuous, Truncated{Normal{Float64}, Continuous, Float64}, Vector{Truncated{Normal{Float64}, Continuous, Float64}}}}, Vector{AbstractPPL.VarName{:friz, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:bp_cp, Tuple{}}, Int64}, Vector{IsoNormal}, Vector{AbstractPPL.VarName{:bp_cp, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_bart, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_bart, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:c_flint, Tuple{}}, Int64}, Vector{Product{Continuous, LogNormal{Float64}, FillArrays.Fill{LogNormal{Float64}, 1, Tuple{Base.OneTo{Int64}}}}}, Vector{AbstractPPL.VarName{:c_flint, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}, DynamicPPL.Metadata{Dict{AbstractPPL.VarName{:coul_froon, Tuple{}}, Int64}, Vector{DistributionsAD.MatrixOfUnivariate{Continuous, Uniform{Float64}, Matrix{Uniform{Float64}}}}, Vector{AbstractPPL.VarName{:coul_froon, Tuple{}}}, Vector{Float64}, Vector{Set{DynamicPPL.Selector}}}}}, Float64}}, Tuple{Int64}}, Float64}, Float64, 10}}) @ Bijectors ~/.julia/packages/Bijectors/vtZ9p/src/transformed_distribution.jl:235
The following model (a simplified version of https://github.com/TuringLang/Bijectors.jl/issues/169) throws a method error with v0.18.0 of Turing
The stack trace is enormous, but here's the first couple of stack frames