Skip to content

Commit 5232934

Browse files
penelopeysmmhauru
andauthored
Update index.qmd
Co-authored-by: Markus Hauru <mhauru@turing.ac.uk>
1 parent 91c5c18 commit 5232934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usage/threadsafe-evaluation/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ As it happens, much of what is needed in DynamicPPL can be constructed such that
258258
For example, as long as there is no need to *sample* new values of random variables, it is actually fine to completely omit the metadata object.
259259
This is the case for `LogDensityFunction`: since values are provided as the input vector, there is no need to store it in metadata.
260260
We need only calculate the associated log-prior probability, which is stored in an accumulator.
261-
Thus, starting from DynamicPPL v0.39, `LogDensityFunction` itself is in fact completely threadsafe.
261+
Thus, starting from DynamicPPL v0.39, `LogDensityFunction` itself will in fact be completely threadsafe.
262262

263263
Technically speaking, this is achieved using `OnlyAccsVarInfo`, which is a subtype of `VarInfo` that only contains accumulators, and no metadata at all.
264264
It implements enough of the `VarInfo` interface to be used in model evaluation, but will error if any functions attempt to modify or read its metadata.

0 commit comments

Comments
 (0)