TuringLang / Bijectors.jl

Implementation of normalising flows and constrained random variable transformations
https://turinglang.org/Bijectors.jl/
MIT License
200 stars 33 forks source link

filldist, up1 not defined #255

Closed mikkoku closed 1 year ago

mikkoku commented 1 year ago

I hope this is the right package for this issue. Running

using Turing
@model function test()
    beta ~ filldist(Normal(), 3, 2)
end
sample(test(), NUTS(), 10)

results in

ERROR: UndefVarError: up1 not defined
Stacktrace:
  [1] bijector(d::DistributionsAD.MatrixOfUnivariate{Continuous, Normal{Float64}, FillArrays.Fill{Normal{Float64}, 2, Tuple{Base.OneTo{Int64}, Base.OneTo{Int64}}}})
    @ Bijectors C:\Users\03052156\.julia\packages\Bijectors\vKGbw\src\compat\distributionsad.jl:17
torfjelde commented 1 year ago

Can you do

]st --manifest

and show us the versions of Turing.jl and Bijectors.jl?

mikkoku commented 1 year ago
  [76274a88] Bijectors v0.12.3
  [fce5fe82] Turing v0.25.0
thevolatilebit commented 1 year ago

Experiencing the same issue with

  [76274a88] Bijectors v0.12.4
  [fce5fe82] Turing v0.25.1
torfjelde commented 1 year ago

This should now be fixed once you upgrade to Bijectors@0.12.5:)

thevolatilebit commented 1 year ago

@torfjelde I can confirm that it works! thank you very much!

patrickm663 commented 1 year ago

@torfjelde Thank you, I had been facing a similar issue. This solves it.