Skip to content

Commit

Permalink
torch backend no_sum fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danlkv committed Mar 19, 2024
1 parent 6f30c94 commit 7e0286f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion qtensor/contraction_backends/torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ def process_bucket(self, bucket, no_sum=False):
key=int, reverse=True
))
else:
result_data = result_data.sum(axis=-1)
if not no_sum:
result_data = result_data.sum(axis=-1)
else:
result_data = result_data



Expand Down

0 comments on commit 7e0286f

Please sign in to comment.