divide

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

Compute the element-wise division.

\[\text{out} = x \div y \]

Examples:

x = tf.constant(4)
y = tf.constant(2)
print(tf.math.divide(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.