mindspore.ops.arctan2

mindspore.ops.arctan2(input, other)[源代码]

mindspore.ops.atan2() 的别名。

支持平台:

Ascend GPU CPU

样例:

>>> import mindspore
>>> from mindspore import Tensor, ops
>>> import numpy as np
>>> x = Tensor(np.array([0, 1]), mindspore.float32)
>>> y = Tensor(np.array([1, 1]), mindspore.float32)
>>> output = ops.arctan2(x, y)
>>> print(output)
[0.        0.7853982]