Skip to content
fn

arccos_op

→TensorImplPtr
int arccos_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

Compute y=arccos⁡(x)y = \arccos(x) element-wise. Allocates a fresh output of the same shape and dtype as a and delegates to AcosBackward::forward.

See Also

AcosBackward — backward node.

Parameters

aTensorImplPtr
Input tensor with values in [−1,1][-1, 1]. Out-of-domain values produce NaN.

Returns

TensorImplPtr

Output tensor of the same shape and dtype, values in [0,π][0, \pi].