rsqrt

dragon.math.rsqrt(
  inputs,
  **kwargs
)[source]

Compute the reciprocal square root of input.

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

Examples:

x = dragon.constant([0., 4., 16.])
print(dragon.math.rsqrt(x))  # [inf, 0.5, 0.25]
Parameters:
Returns:

dragon.Tensor The output tensor.