mindspore.mint.arctan2
- mindspore.mint.arctan2(input, other)[源代码]
-
- 支持平台:
Ascend
样例:
>>> 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]