Skip to content
fn

tan_op

→TensorImplPtr
int tan_op(const int & a)

Python wrappers

Public Python APIs implemented by this engine symbol.

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

See Also

TanBackward — backward node.

Parameters

aTensorImplPtr
Input tensor of any shape, values in radians. Singular at x=(k+12)πx = (k + \tfrac{1}{2})\pi.

Returns

TensorImplPtr

Output tensor of the same shape and dtype.