I am facing with a problem!
How does np.einsum act on these tensors?
a = np.random.rand(2, 2, 5, 5)
b = np.random.rand(4, 5, 5, 1)
c = np.einsum('aijb,qwei->qweaj', b, a)
the output shape is: (2, 2, 5, 4, 5)
a = np.random.rand(2, 2, 5, 4, 5)
b = np.random.rand(1, 2, 2, 4)
c = np.einsum('fqnd,qlkjd->nlkj', b, a)
for this output is: (2, 5, 2, 5)
I don't know what operation(s) is performed?