a = torch.tensor([[1,1]],dtype=torch.float32)
b = torch.tensor([[1,1]],dtype=torch.float32)
c = torch.tensor([[2,2],[2,3]],dtype=torch.float32)
d = torch.tensor([[2,2],[2,3]],dtype=torch.float32)
#矩阵对应位置相乘
print(torch.mul(c,d))
#矩阵对应位置相乘,再相加,获得一个值
print(torch.dot(torch.tensor([1,2]),torch.tensor([1,2])))
#矩阵乘法
print(torch.mm(a,c))