Skip to content

Commit 83737ba

Browse files
Apply suggestions from code review
Co-authored-by: Mohamed Tarek <[email protected]>
1 parent dc7c59a commit 83737ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ end
162162
163163
Evaluate the `model` with `varinfo` wrapped inside a `ThreadSafeVarInfo`.
164164
165-
With the wrapper, Julia's multithreading can be used for assume statements in the `model`
165+
With the wrapper, Julia's multithreading can be used for observe statements in the `model`
166166
but parallel sampling will lead to undefined behaviour.
167167
This method is not exposed and supposed to be used only internally in DynamicPPL.
168168

test/threadsafe.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
println(" default:")
6060
@time wthreads(x)(vi)
6161

62-
# Ensure that we use `ThreadSafeVarInfo` to handle multithreaded assume statements.
62+
# Ensure that we use `ThreadSafeVarInfo` to handle multithreaded observe statements.
6363
DynamicPPL.evaluate_threadsafe(Random.GLOBAL_RNG, wthreads(x), vi,
6464
SampleFromPrior(), DefaultContext())
6565
@test getlogp(vi) lp_w_threads

0 commit comments

Comments
 (0)