📜  pytorch 将张量元素逐元素相乘 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:25.320000             🧑  作者: Mango
代码示例1
# Multiplication tensors element by element
a = torch.tensor([1.,2., 3.])
b = torch.tensor([4., 4., 6.])
a.mul(b)