mindspore.mint.arctan2

View Source On Gitee
mindspore.mint.arctan2(input, other)[source]

Alias for mindspore.mint.atan2().

Supported Platforms:

Ascend

Examples

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