latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.tan
- tensorplay.functional.tan(input, *, out=None) Tensor[source]
Returns a new tensor with the tangent of the elements of
input.- Parameters:
input (Tensor) – the input tensor.
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.randn(4) >>> a tensor([-1.2027, -1.7687, 0.4412, -1.3856]) >>> tensorplay.tan(a) tensor([-2.5930, 4.9859, 0.4722, -5.3366])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

