mindspore.ops.tan
- mindspore.ops.tan(input)[source]
Computes tangent of input element-wise.
- Parameters
input (Tensor) – The input tensor.
- Returns
Tensor
- Supported Platforms:
Ascend
GPU
CPU
Examples
>>> import mindspore >>> output = mindspore.ops.tan(mindspore.tensor([-1.0, 0.0, 1.0])) >>> print(output) [-1.5574077 0. 1.5574077]