Skip to content

Commit 79bfbc9

Browse files
committed
reci
1 parent 518e64a commit 79bfbc9

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

docs/src/api.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,10 @@ The [LogDensityProblems.jl](https://github.com/tpapp/LogDensityProblems.jl) inte
6666
LogDensityFunction
6767
```
6868

69-
Internally, this is accomplished using:
69+
Internally, this is accomplished using [`init!!`](@ref) on:
7070

7171
```@docs
7272
OnlyAccsVarInfo
73-
fast_evaluate!!
7473
```
7574

7675
## Condition and decondition
@@ -517,7 +516,7 @@ The function `init!!` is used to initialise, or overwrite, values in a VarInfo.
517516
It is really a thin wrapper around using `evaluate!!` with an `InitContext`.
518517

519518
```@docs
520-
DynamicPPL.init!!
519+
init!!
521520
```
522521

523522
To accomplish this, an initialisation _strategy_ is required, which defines how new values are to be obtained.

src/DynamicPPL.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ export AbstractVarInfo,
9292
getargnames,
9393
extract_priors,
9494
values_as_in_model,
95+
# evaluation
96+
evaluate!!,
97+
init!!,
9598
# LogDensityFunction and fasteval
9699
LogDensityFunction,
97-
fast_evaluate!!,
98100
OnlyAccsVarInfo,
99101
# Leaf contexts
100102
AbstractContext,

src/chains.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ function ParamsWithStats(
174174
else
175175
(DynamicPPL.ValuesAsInModelAccumulator(include_colon_eq),)
176176
end
177-
_, vi = DynamicPPL.Experimental.fast_evaluate!!(
178-
ldf.model, strategy, AccumulatorTuple(accs)
179-
)
177+
_, vi = DynamicPPL.init!!(ldf.model, OnlyAccsVarInfo(AccumulatorTuple(accs)), strategy)
180178
params = DynamicPPL.getacc(vi, Val(:ValuesAsInModel)).values
181179
if include_log_probs
182180
stats = merge(

0 commit comments

Comments
 (0)