mindspore.ops.Tan
- class mindspore.ops.Tan[source]
Computes tangent of x element-wise.
Refer to
mindspore.ops.tan()
for more detail.- Supported Platforms:
Ascend
CPU
GPU
Examples
>>> tan = ops.Tan() >>> x = Tensor(np.array([-1.0, 0.0, 1.0]), mindspore.float32) >>> output = tan(x) >>> print(output) [-1.5574081 0. 1.5574081]