I have two tensor torch.randn(3, 10, 4) and torch.randn(4, 10, 3)
I want to multiply them to become a (10,10) tensor
However, it has error when I use matmul, may I know which part is wrong?
tensor1 = torch.randn(3, 10, 4)
tensor2 = torch.randn(4, 10, 3)
print(torch.matmul(tensor1, tensor2).size())