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

17 lines
555 B
ReStructuredText
Raw Permalink 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.Complex
======================
.. py:class:: mindspore.ops.Complex
给定复数的实部与虚部返回一个复数的Tensor。
输入:
- **real** (Tensor) - 实部的取值。数据类型float32float64。
- **imag** (Tensor) - 虚部的取值。数据类型float32float64。
输出:
Complex类型的Tensor。
异常:
- **TypeError** - 输入的数据类型不是float32或float64之一。
- **TypeError** - 输入的实部与虚部数据类型不一致。