import torcha=torch.Tensor([[1,2,3,4,5],[6,7,8,9,10]])b=torch.Tensor([[2,4,6,8,10],[1,3,5,7,9]])逐元素相乘 element-wise multiplication#element-wise multiplicationc=a*bprint('c.size:\t',c.size(),'\nc:\t',c)输出:c.size: torch.Size([2, 5]) c: tensor([[
learn
2023-10-13
39 点赞
0 评论
59 浏览