mindspore.ops.Angle

class mindspore.ops.Angle[source]

Returns the element-wise argument of a complex tensor.

Warning

This is an experimental API that is subject to change or deletion.

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

Inputs:
  • input (Tensor) - The input tensor. Supported types: complex64, complex128.

Outputs:

Tensor, has the float32 or float64 type and the same shape as input.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> from mindspore import Tensor, ops
>>> input = Tensor([-1.5 + 7.8j, 3 + 5.75j], mindspore.complex64)
>>> angle = ops.Angle()
>>> output = angle(input)
>>> print(output)
[1.7607845 1.0899091]