10/31
Part 2 of 6 · Shapes place each factorLearn and do
Swap the last two axes, never use .T
Once a has a batch axis, how you transpose matters.
x = torch.randn(2, 3, 4)
print(x.mT.shape)
print(x.T.shape)
x is (2, 3, 4), a batch of two matrices. What are x.mT.shape and x.T.shape?
Pick one to see what it prints.
Pick an answer above to see the rest