import numpy as np
a = np.array([
[1, 2, 3],
[4, 5, 6]
])
b = np.array([
[7, 8],
[9, 10],
[11, 12]
])
c = np.tensordot(a, b, (1, 0))
d = np.tensordot(a, b, 1)
print(c)
print(c == d)
aW1wb3J0IG51bXB5IGFzIG5wCgphID0gbnAuYXJyYXkoWwoJWzEsIDIsIDNdLAoJWzQsIDUsIDZdCl0pCgpiID0gbnAuYXJyYXkoWwoJWzcsIDhdLAoJWzksIDEwXSwKCVsxMSwgMTJdCl0pCgpjID0gbnAudGVuc29yZG90KGEsIGIsICgxLCAwKSkKZCA9IG5wLnRlbnNvcmRvdChhLCBiLCAxKQoKcHJpbnQoYykKcHJpbnQoYyA9PSBkKQ==