mindspore.ops.Atan

View Source On Gitee
class mindspore.ops.Atan[source]

Computes the trigonometric inverse tangent of the input element-wise.

Refer to mindspore.ops.atan() for more details.

Inputs:
  • x (Tensor): The input Tensor. Supported dtypes:

    • Ascend: float16, float32.

    • GPU/CPU: float16, float32, float64.

Outputs:

A Tensor, has the same type as the input.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, ops
>>> x = Tensor(np.array([1.0, 0.0]), mindspore.float32)
>>> atan = ops.Atan()
>>> output = atan(x)
>>> print(output)
[0.7853982 0.       ]