Turing.jl: Program bug is silent for coroutines

Created on 12 Oct 2018  路  3Comments  路  Source: TuringLang/Turing.jl

When running a model with programmatically error, samplers like SMC suspends silently without throwing the error.

bug

All 3 comments

Simplest example:

julia> using Turing
julia> @model test(xs) = begin
         print(xs[2])
         x ~ Normal(0, 1)
       end
test (generic function with 2 methods)

julia> mf = test([1])
[ Info:  Assume - `x` is a parameter
test_model (generic function with 4 methods)

julia> sample(mf, SMC(10)) #=> suspend

TuringLang/Libtask#7

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trappmartin picture trappmartin  路  6Comments

trappmartin picture trappmartin  路  3Comments

mateuszbaran picture mateuszbaran  路  5Comments

willtebbutt picture willtebbutt  路  4Comments

mohamed82008 picture mohamed82008  路  3Comments