subtract

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

Compute the element-wise subtraction.

\[\text{out} = \text{input1} - \text{input2} \]

Examples:

x = tf.constant(1)
y = tf.constant(2)
print(tf.math.subtract(x, y))
print(x - y)  # Equivalent operation
Parameters:
Returns:

dragon.Tensor – The output tensor.