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

21 lines
606 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.conj
===================
.. py:function:: mindspore.ops.conj(input)
计算输入Tensor的逐元素共轭。复数的形式必须是 `a + bj` 其中a是实部b是虚部。
返回的共轭形式为 `a + bj`
如果 `input` 是实数,则直接返回 `input`
参数:
- **input** (Tensor) - 输入Tensor必须是数字类型。
返回:
Tensor数据类型与 `input` 相同。
异常:
- **TypeError** - 如果 `input` 的数据类型不是数字类型。
- **TypeError** - 如果 `input` 不是Tensor。