mindspore/docs/api/api_python/ops/mindspore.ops.func_angle.rst

18 lines
602 B
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.ops.angle
===================
.. py:function:: mindspore.ops.angle(x)
返回复数Tensor的元素辐角。
输入中的元素被认为是形式为a+bj的复数其中a是实部b是虚部。此函数返回的参数的形式为atan2(ba)。
参数:
- **x** (Tensor) - 输入Tensor。支持类型complex64、complex128。
返回:
Tensor类型为float32或float64shape与输入相同。
异常:
- **TypeError** - 如果 `x` 不是Tensor。
- **TypeError** - 如果输入的数据类型不是complex64或complex128。