torch.tan
- torch.tan(input, *, out=None) → Tensor
Returns a new tensor with the tangent of the elements in the
inputtensor, where each value in this input tensor is in radians.
Returns a new tensor with the tangent of the elements in the input tensor,
where each value in this input tensor is in radians.
Example:
>>> a = torch.randn(4)
>>> a
tensor([-1.2027, -1.7687, 0.4412, -1.3856])
>>> torch.tan(a)
tensor([-2.5930, 4.9859, 0.4722, -5.3366])