Skip to content

Commit

Permalink
do not change input flows in tdp when update_pflow=False
Browse files Browse the repository at this point in the history
  • Loading branch information
liuanji committed Aug 22, 2024
1 parent ec59bd4 commit fb0eaa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pyjuice/model/backend/top_down_prob.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,8 @@ def eval_top_down_probs(pc, update_pflow: bool = True, scale: float = 1.0, pc_is
pc_is_normalized = pc_is_normalized)

# Backward pass over the input layers
for layer in pc.input_layer_group:
layer.add_missing_flows(node_flows, scale = scale)
if update_pflow:
for layer in pc.input_layer_group:
layer.add_missing_flows(node_flows, scale = scale)

return None

0 comments on commit fb0eaa3

Please sign in to comment.