Rate this Page
★★★★★
torch.Tensor.add#
- Tensor.add(other,*,alpha=1)→Tensor#
Add a scalar or tensor to
selftensor. If bothalphaandotherare specified, each element ofotheris scaled byalphabefore being used.When
otheris a tensor, the shape ofothermust bebroadcastable with the shape of the underlyingtensorSee
torch.add()
On this page