Skip to content

Commit 79a5f3c

Browse files
committed
Fixes
1 parent ceea66a commit 79a5f3c

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

docs/src/api.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ Base.empty!
355355
SimpleVarInfo
356356
```
357357

358+
### Tilde-pipeline
359+
360+
```@docs
361+
tilde_assume!!
362+
tilde_observe!!
363+
```
364+
358365
### Accumulators
359366

360367
The subtypes of [`AbstractVarInfo`](@ref) store the cumulative log prior and log likelihood, and sometimes other variables that change during executing, in what are called accumulators.

src/DynamicPPL.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ export AbstractVarInfo,
110110
DefaultContext,
111111
PrefixContext,
112112
ConditionContext,
113-
assume,
114-
tilde_assume,
113+
# Tilde pipeline
114+
tilde_assume!!,
115+
tilde_observe!!,
115116
# Initialisation
116117
InitContext,
117118
AbstractInitStrategy,

test/threadsafe.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
@test vi isa VarInfo
7777

7878
println(" evaluate_threadsafe!!:")
79-
@time DynamicPPL.evaluate_threadsafe!!(sampling_model, vi)
79+
@time DynamicPPL.evaluate_threadsafe!!(model, vi)
8080

8181
@model function wothreads(x)
8282
global vi_ = __varinfo__
@@ -109,6 +109,6 @@
109109
@test vi isa VarInfo
110110

111111
println(" evaluate_threadunsafe!!:")
112-
@time DynamicPPL.evaluate_threadunsafe!!(sampling_model, vi)
112+
@time DynamicPPL.evaluate_threadunsafe!!(model, vi)
113113
end
114114
end

0 commit comments

Comments
 (0)