torch 1.6.0`matmul``mm`
>>> import torch
>>> a = torch.randn(3, 1)
>>> b = torch.randn(1, 3)
>>> a.size()
torch.Size([3, 1])
>>> b.size()
torch.Size([1, 3])
>>> torch.matmul(a, b)
tensor([[ 0.0096, 0.3664, 0.2490],
[-0.0145, -0.5553, -0.3773],
[ 0.0282, 1.0820, 0.7353]])
>>> torch.mm(a, b)
tensor([[ 0.0096, 0.3664, 0.2490],
[-0.0145, -0.5553, -0.3773],
[ 0.0282, 1.0820, 0.7353]])
>>> torch.matmul(b, a)
tensor([[0.1896]])