add¶
dragon.math.
add
(
inputs,
**kwargs
)[source]¶Compute the element-wise addition.
\[\text{out} = \text{input1} + \text{input2} \]Examples:
a = dragon.constant(1) b = dragon.constant(2) print(dragon.math.add([a, b])) print(a + b) # Equivalent operation
- Parameters:
- inputs (Sequence[dragon.Tensor]) – The input1 and input2 tensor.
- Returns:
dragon.Tensor – The output tensor.