What I have in the code I was given is something like:
C = np.tensordot(B, A, axes = (0,0))
A is a (20L, 50L)
and B is (20L, 20L)
I was supposed to change since someone told me it would be faster with np.einsum
, but I guess I don't fully understand what tensordot
is outputing.
Right now C is a (20L, 50L)
and I don't understand why?
Of course I have read the documentation page, but still didn't grasp the information. Take into consideration that I have just started working with Python.