Skip to content

Commit e0086e1

Browse files
committed
Remove NumProduceAcc from Debug
1 parent 2328482 commit e0086e1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/debug_utils.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,7 @@ function check_model_and_trace(
410410
model::Model, varinfo::AbstractVarInfo; error_on_failure=false
411411
)
412412
# Add debug accumulator to the VarInfo.
413-
# Need a NumProduceAccumulator as well or else get_num_produce may throw
414-
# TODO(mhauru) Remove this once VariableOrderAccumulator stuff is done.
415-
varinfo = DynamicPPL.setaccs!!(
416-
deepcopy(varinfo), (DebugAccumulator(error_on_failure), NumProduceAccumulator())
417-
)
413+
varinfo = DynamicPPL.setaccs!!(deepcopy(varinfo), (DebugAccumulator(error_on_failure),))
418414

419415
# Perform checks before evaluating the model.
420416
issuccess = check_model_pre_evaluation(model)

0 commit comments

Comments
 (0)