Skip to content

Commit 3d2c1eb

Browse files
committed
Do not reset logp in evaluator
1 parent d6fddd3 commit 3d2c1eb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/compiler.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ function build_output(model_info)
443443
$ctx::$(DynamicPPL.AbstractContext),
444444
)
445445
$unwrap_data_expr
446-
$(DynamicPPL.resetlogp!)($vi)
447446
$main_body
448447
return
449448
end

src/model.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function runmodel!(
131131
spl::AbstractSampler=SampleFromPrior(),
132132
ctx::AbstractContext=DefaultContext()
133133
)
134-
setlogp!(vi, 0)
134+
resetlogp!(vi)
135135
if has_eval_num(spl)
136136
spl.state.eval_num += 1
137137
end

0 commit comments

Comments
 (0)