We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2328482 commit e0086e1Copy full SHA for e0086e1
src/debug_utils.jl
@@ -410,11 +410,7 @@ function check_model_and_trace(
410
model::Model, varinfo::AbstractVarInfo; error_on_failure=false
411
)
412
# 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
- )
+ varinfo = DynamicPPL.setaccs!!(deepcopy(varinfo), (DebugAccumulator(error_on_failure),))
418
419
# Perform checks before evaluating the model.
420
issuccess = check_model_pre_evaluation(model)
0 commit comments