torch.matmul(a,b):是 矩阵a*b
a.mul(b):是矩阵a和矩阵b逐位相乘
matmul和mul的区别
最新推荐文章于 2024-04-29 09:11:33 发布
torch.matmul(a,b):是 矩阵a*b
a.mul(b):是矩阵a和矩阵b逐位相乘