Skip to content

Commit

Permalink
fix the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy committed Aug 27, 2023
1 parent 84221f9 commit bd174f4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions funsor/sum_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,6 @@ def partial_sum_product(
assert all(isinstance(f, Funsor) for f in factors)
assert isinstance(eliminate, frozenset)
assert isinstance(plates, frozenset)
assert isinstance(plate_to_scale, dict)

if plate_to_scale:
if sum_op is ops.logaddexp and prod_op is ops.add:
pow_op = ops.mul
elif sum_op is ops.add and prod_op is ops.mul:
pow_op = ops.pow
else:
raise ValueError("should not be here!")

if plate_to_scale:
if pow_op is None:
Expand Down

0 comments on commit bd174f4

Please sign in to comment.