-
|
I Have this error ValueError: The length of the contraction path (2590) must be one less than the number of operands (2593). I think it is due to the internal simplification contracting in excess tensors. I want to set this enum but it is not exposed in the NetworkOptions ContractionOptimizerConfigAttribute.SIMPLIFICATION_DISABLE_DR I am not really sure how to set it with the low level API. Here is my code. I am path finding and slicing over multiple nodes with MPI, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 39 replies
-
|
I figured this out |
Beta Was this translation helpful? Give feedback.
-
|
Unfortunatly with the enum turned on I still get the error. ValueError: The length of the contraction path (2590) must be one less than the number of operands (2595). This only happens on multiple devices. It does not occur on a single gpu. |
Beta Was this translation helpful? Give feedback.
-
|
I got the same error with the path length error with some simpler code that explicitly uses MPI and does not get a distributed error This is the error ValueError: The length of the contraction path (2592) must be one less than the number of operands (2591). This seems to run distributed fine but It seems the contract path is different on each node and causing this error. |
Beta Was this translation helpful? Give feedback.
-
|
(Let me reopen this discussion. I noticed that if a discussion is marked as closed, at the entry time to GitHub Discussions it's not visible to readers, unless they specifically look for "closed" or "all" discussions.) |
Beta Was this translation helpful? Give feedback.
Apologies. I meant this post #30.
I fixed it by generating the paths on a single node process and then broadcasting them. It was an error in how I was using MPI4py I think.