Skip to content

BNN Variational Inference Error #59

@cpfiffer

Description

@cpfiffer

@torfjelde the BNN tutorial is failing because

update(q, (μ, exp.(ω)))

doesn't seem to work anymore, because update doesn't seem to be exported anymore. I tried calling

Variational.update(q, (μ, exp.(ω)))

but there's a new error:

MethodError: no method matching update(::DistributionsAD.TuringDiagMvNormal{Array{Float64,1},Array{Float64,1}}, ::Tuple{Array{Float64,1},Array{Float64,1}})
Closest candidates are:
  update(::DistributionsAD.TuringDiagMvNormal, ::Any, !Matched::Any) at /home/cameron/.julia/packages/Turing/cReBm/src/variational/advi.jl:8
  update(!Matched::TransformedDistribution, ::Any...) at /home/cameron/.julia/packages/Turing/cReBm/src/variational/advi.jl:9

Stacktrace:
 [1] update(::TransformedDistribution{DistributionsAD.TuringDiagMvNormal{Array{Float64,1},Array{Float64,1}},Stacked{Tuple{Identity{1}},1},Multivariate}, ::Tuple{Array{Float64,1},Array{Float64,1}}) at /home/cameron/.julia/packages/Turing/cReBm/src/variational/advi.jl:9
 [2] top-level scope at In[28]:10

What's the fix here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions