mindspore.ops.Atan2

class mindspore.ops.Atan2[source]

Returns arctangent of x/y element-wise.

Refer to mindspore.ops.atan2() for more detail.

Supported Platforms:

Ascend CPU GPU

Examples

>>> x = Tensor(np.array([0, 1]), mindspore.float32)
>>> y = Tensor(np.array([1, 1]), mindspore.float32)
>>> atan2 = ops.Atan2()
>>> output = atan2(x, y)
>>> print(output)
[0.        0.7853982]