Open ryan112358 opened 1 week ago
One caution is the optimal algorithm scales factorially, with 10 input arrays you are generally pushing the limits with 10's of seconds to minutes runtime. You will find similar results with the dp
algorithm which has much better runtimes or this particular contraction can be evaluated with greedy
for what is likely to be the optimal path. We generally recommend optimize='auto'
to balance path finding/path quality for input formula. More information can be found here.
I'll check out your example to see if it's an actual hang or just a long path evaluation time.
Cross posting from https://github.com/jax-ml/jax/issues/24929