Skip to content

Commit

Permalink
change to store and show last 20 'remaining terms' in PathInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Jul 19, 2020
1 parent e5d609e commit 1a80c21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opt_einsum/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ def contract_path(*operands, **kwargs):

einsum_str = ",".join(tmp_inputs) + "->" + idx_result

if len(input_list) <= 10:
# for large expressions saving the remaining terms at each step can
# incur a large memory footprint - and also be messy to print
if len(input_list) <= 20:
remaining = tuple(input_list)
else:
remaining = None
Expand Down

0 comments on commit 1a80c21

Please sign in to comment.