Skip to content
fn

rsqrt_op

→TensorImplPtr
int rsqrt_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

Compute y=1/xy = 1/\sqrt{x} element-wise. Allocates a fresh output of the same shape and dtype as a and delegates to RsqrtBackward::forward.

See Also

RsqrtBackward — backward node.

Parameters

aTensorImplPtr
Input tensor of any shape. Must be strictly positive.

Returns

TensorImplPtr

Output tensor of the same shape and dtype.