Skip to content

Commit 79fb999

Browse files
committed
Fixes
1 parent 218daa9 commit 79fb999

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
@@ -104,8 +104,9 @@ export AbstractVarInfo,
104104
DefaultContext,
105105
PrefixContext,
106106
ConditionContext,
107-
assume,
108-
tilde_assume,
107+
# Tilde pipeline
108+
tilde_assume!!,
109+
tilde_observe!!,
109110
# Initialisation
110111
InitContext,
111112
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)