Rate this Page

torch.Tensor.add#

Tensor.add(other,*,alpha=1)Tensor#

Add a scalar or tensor toself tensor. If bothalphaandother are specified, each element ofother is scaled byalpha before being used.

Whenother is a tensor, the shape ofother must bebroadcastable with the shape of the underlyingtensor

Seetorch.add()