You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
input=np.random.rand(1,3,5,2,)
a=np.random.rand(2)
b=np.random.rand(7)
# ValueError: operands could not be broadcast together with shapes (4,) (0,) oe.contract_path('...D,D,k->...k', input.shape, a.shape, b.shape, shapes=True)
While if we do not pass the shapes, the function works:
oe.contract_path('...D,D,k->...k', input, a, b) # all good!
The source of error is in in parser.py where operands (i.e. the shapes) are converted into arrays:
Easy way to reproduce:
While if we do not pass the shapes, the function works:
The source of error is in in parser.py where
operands
(i.e. the shapes) are converted into arrays:The fix should be simple: just skip the conversion when
shapes
is True.The text was updated successfully, but these errors were encountered: