Skip to content
fn

sqrt_inplace_op

→TensorImplPtr
int sqrt_inplace_op(const int & a)

In-place square root: writes x\sqrt{x} back into a.

Math

ai←aia_i \leftarrow \sqrt{a_i}

See Also

sqrt_op — out-of-place counterpart.

Parameters

aTensorImplPtr
Tensor to take square root of in place. Must be non-null.

Returns

TensorImplPtr

The same pointer as a.