rsqrt

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

Compute the reciprocal square root of input.

\[\text{out} = \frac{1}{\sqrt{\text{input}}} \]

Examples:

x = tf.constant([0., 4., 16.])
print(tf.math.rsqrt(x))  # [inf, 0.5, 0.25]
Parameters:
  • x (dragon.Tensor) – The input tensor.
  • name (str, optional) – The operation name.
Returns:

dragon.Tensor – The output tensor.