@@ -30,7 +30,7 @@ function tilde(ctx::MiniBatchContext, sampler, right, left::VarName, inds, vi)
30
30
end
31
31
32
32
function _tilde (sampler, right, vn:: VarName , vi)
33
- return Turing . assume (sampler, right, vn, vi)
33
+ return assume (sampler, right, vn, vi)
34
34
end
35
35
function _tilde (sampler, right:: NamedDist , vn:: VarName , vi)
36
36
name = right. name
@@ -62,14 +62,14 @@ function tilde(ctx::MiniBatchContext, sampler, right, left, vi)
62
62
return ctx. loglike_scalar * tilde (ctx. ctx, sampler, right, left, vi)
63
63
end
64
64
65
- _tilde (sampler, right, left, vi) = Turing . observe (sampler, right, left, vi)
65
+ _tilde (sampler, right, left, vi) = observe (sampler, right, left, vi)
66
66
67
67
function assume (spl:: Sampler , dist)
68
- error (" Turing .assume: unmanaged inference algorithm: $(typeof (spl)) " )
68
+ error (" DynamicPPL .assume: unmanaged inference algorithm: $(typeof (spl)) " )
69
69
end
70
70
71
71
function observe (spl:: Sampler , weight)
72
- error (" Turing .observe: unmanaged inference algorithm: $(typeof (spl)) " )
72
+ error (" DynamicPPL .observe: unmanaged inference algorithm: $(typeof (spl)) " )
73
73
end
74
74
75
75
function assume (
@@ -233,7 +233,7 @@ function dot_assume(
233
233
:: Any ,
234
234
:: VarInfo
235
235
)
236
- error (" [Turing ] $(alg_str (spl)) doesn't support vectorizing assume statement" )
236
+ error (" [DynamicPPL ] $(alg_str (spl)) doesn't support vectorizing assume statement" )
237
237
end
238
238
239
239
function get_and_set_val! (
@@ -351,8 +351,8 @@ function dot_observe(
351
351
vi:: VarInfo ,
352
352
)
353
353
increment_num_produce! (vi)
354
- Turing . DEBUG && @debug " dist = $dist "
355
- Turing . DEBUG && @debug " value = $value "
354
+ DynamicPPL . DEBUG && @debug " dist = $dist "
355
+ DynamicPPL . DEBUG && @debug " value = $value "
356
356
return sum (logpdf (dist, value))
357
357
end
358
358
function dot_observe (
@@ -362,8 +362,8 @@ function dot_observe(
362
362
vi:: VarInfo ,
363
363
)
364
364
increment_num_produce! (vi)
365
- Turing . DEBUG && @debug " dists = $dists "
366
- Turing . DEBUG && @debug " value = $value "
365
+ DynamicPPL . DEBUG && @debug " dists = $dists "
366
+ DynamicPPL . DEBUG && @debug " value = $value "
367
367
return sum (logpdf .(dists, value))
368
368
end
369
369
function dot_observe (
@@ -372,5 +372,5 @@ function dot_observe(
372
372
:: Any ,
373
373
:: VarInfo ,
374
374
)
375
- error (" [Turing ] $(alg_str (spl)) doesn't support vectorizing observe statement" )
375
+ error (" [DynamicPPL ] $(alg_str (spl)) doesn't support vectorizing observe statement" )
376
376
end
0 commit comments