Skip to content

Commit

Permalink
internalize opt_einsum funcs and remove as dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmgray committed Aug 11, 2023
1 parent e396985 commit c9c6d3d
Show file tree
Hide file tree
Showing 4 changed files with 1,156 additions and 24 deletions.
3 changes: 3 additions & 0 deletions cotengra/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3083,6 +3083,8 @@ def build_divide(
partition_opts["imbalance"] = imbalance_s

if dynamic_fix:
# for the top level subtree (s==1.0) we partition the outputs
# nodes first into their own bi-partition
parts_s = 2
partition_opts["fix_output_nodes"] = s == 1.0

Expand Down Expand Up @@ -3114,6 +3116,7 @@ def build_divide(
)
continue

# update tree structure with newly contracted subgraphs
tree.contract_nodes(
new_subgs, optimize=super_optimize, check=check
)
Expand Down
Loading

0 comments on commit c9c6d3d

Please sign in to comment.