Skip to content
fn

sin_op

→TensorImplPtr
int sin_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

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

See Also

SinBackward — backward node.

Parameters

aTensorImplPtr
Input tensor of any shape, values in radians.

Returns

TensorImplPtr

Output tensor of the same shape and dtype, values in [−1,1][-1, 1].