why torch.Tensor subtract works well when tensor size is different?

前端 未结 0 1491
慢半拍i
慢半拍i 2021-02-05 15:06

this example will better easy to understand

A = tensor.torch([[1, 2, 3], [4, 5, 6]])   # shape : (2, 3)
B = tensor.torch([[1, 2], [3, 4], [5, 6]]) # shape : (3, 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题