torch.Tensor.add
- Tensor.add(other, *, alpha=1) → Tensor
Add a scalar or tensor to
selftensor. If bothand are specified, each element of is scaled by before being used.
Add a scalar or tensor to self tensor. If both
and are specified, each element of is scaled by
before being used.
otherotheralphaWhen other is a tensor, the shape of other must be
broadcastable with the shape of the underlying
tensor
See torch.add()