arr1 = np.arange(8).reshape(4, 2) arr2 = np.arange(4, 12).reshape(2, 4) ans=np.tensordot(arr1,arr2,axes=([1],[0])) ans2=np.tensordot(arr1,arr2,axes=([0],[1])) ans3 =