add

dragon.vm.tensorflow.math.add(
  x,
  y,
  name=None
)[source]

Compute the element-wise addition.

\[\text{out} = x + y \]
x = tf.constant(1)
y = tf.constant(2)
print(tf.math.add(x, y))
print(x + y)  # Equivalent operation
Parameters:
  • x (dragon.Tensor) – The input tensor.
  • y (dragon.Tensor) – The tensor \(y\).
  • name (str, optional) – A optional name for the operation.
Returns:

dragon.Tensor – The output tensor.