Skip to content

Commit c475f96

Browse files
committed
Fix bug
1 parent f90d451 commit c475f96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fasteval.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,9 @@ function fast_evaluate!!(model::Model, ctx::FastEvalVectorContext, accs::Accumul
364364
# https://github.com/TuringLang/DynamicPPL.jl/issues/1086
365365
vi = if Threads.nthreads() > 1
366366
accs = map(
367-
acc -> DynamicPPL.convert_eltype(float_type_with_fallback(eltype(params)), acc),
367+
acc -> DynamicPPL.convert_eltype(
368+
float_type_with_fallback(eltype(ctx.params)), acc
369+
),
368370
accs,
369371
)
370372
ThreadSafeVarInfo(OnlyAccsVarInfo(accs))

0 commit comments

Comments
 (0)