add¶
dragon.vm.torch.
add
(
input,
other,
out=None
)[source]¶Compute the element-wise addition.
\[\text{out} = \text{input} + \text{other} \]- Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- other (Union[dragon.vm.torch.Tensor, number]) – The tensor to add.
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.