mindspore/docs/api/api_python/ops/mindspore.ops.ConjugateTran...

22 lines
898 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.ConjugateTranspose
=================================
.. py:class:: mindspore.ops.ConjugateTranspose
计算 `x``perm` 进行行列变换后的共轭矩阵。
.. math::
y[i, j, k, ..., s, t, u] == Conj(x[perm[i], perm[j], perm[k],...,perm[s], perm[t], perm[u]]), i, j, ... ∈ [0, rank(x))
输入:
- **x** (Tensor) - 输入要计算的Tensor。
- **perm** (tuple[int]) - 进行行列变换时输入与输出的索引对应规则。 `perm``x` 每个维度的索引组成,其长度必须和 `x` 的shape长度相同且仅支持常量值。
输出:
Tensor。输出Tensor的shape由输入的Tensor与 `perm` 决定。
异常:
- **TypeError** - `perm` 不是tuple格式。
- **ValueError** - `x``perm` 的shape长度不一致。
- **ValueError** - `perm` 中存在相同元素。