From bd174f40d036bc4e38fe7e2f7bcdb9d7f0d74f80 Mon Sep 17 00:00:00 2001 From: Yerdos Ordabayev Date: Sun, 27 Aug 2023 00:18:00 +0000 Subject: [PATCH] fix the merge --- funsor/sum_product.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/funsor/sum_product.py b/funsor/sum_product.py index e8f9eff2..31a4d2fa 100644 --- a/funsor/sum_product.py +++ b/funsor/sum_product.py @@ -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: