Skip to content
fn

sqrt_op

→TensorImplPtr
int sqrt_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

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

See Also

SqrtBackward — backward node.

Parameters

aTensorImplPtr
Input tensor of any shape. Must be non-negative; negative values produce NaN.

Returns

TensorImplPtr

Output tensor of the same shape and dtype.