Skip to main content
Log in

Mojo function

rsqrt

rsqrt(value: Symbol) -> Symbol

Computes the elementwise inverse-square-root of a symbolic tensor.

Creates a new op node to compute the elementwise rsqrt of a symbolic tensor and adds it to the graph, returning the symbolic result.

Args:

  • value (Symbol): The symbolic tensor to use as the input to the rsqrt computation. If it's not a floating-point DType, an exception will be raised.

Returns:

A new symbolic tensor value representing the output of the absolute value computation.

Raises:

If the symbol doesn't represent a tensor value.