optimize='hyper-spinglass'
See original GitHub issueIn the following code:
eq, shapes = oe.helpers.rand_equation(100, 3,d_min=2,d_max=2,seed=1) path, info = oe.contract_path(eq, *shapes, shapes=True, optimize='hyper-spinglass')
I encountered “KeyError: “Path optimizer ‘auto-hq’ not found, valid options are {‘random-greedy’, ‘quickbb-2’, ‘flowcutter-60’, ‘branch-all’, ‘hyper-greedy’, ‘hyper-256’, ‘quickbb-10’, ‘flowcutter-10’, ‘hyper-betweenness’, ‘flowcutter-2’, ‘eager’, ‘greedy’, ‘auto’, ‘branch-1’, ‘dynamic-programming’, ‘quickbb-60’, ‘hyper’, ‘hyper-kahypar’, ‘branch-2’, ‘hyper-spinglass’, ‘dp’, ‘opportunistic’, ‘optimal’}.””
It seems that somehow in the core.py: ContractionTree.contract(), the optimize is still the default value ‘auto-hq’, instead of spinglass.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi sorry by ‘develop’ version I meant the latest (currently unreleased) version on github. You can either clone it to you computer and install it locally:
The
-U
means update and the-e
means editable - you can make changes and pull commits and when you reimportopt_einsum
the changes will immediately come into effect.Or you install directly from the github repo:
(in which case the version of
opt_einsum
will be frozen at the latest commit.)Yes, installing the develop version of opt_einsum solved my problem. Thanks!