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

22 lines
898 B
ReStructuredText
Raw Normal View History

2022-11-10 15:35:27 +08:00
mindspore.ops.ConjugateTranspose
=================================
2022-11-16 10:27:59 +08:00
.. py:class:: mindspore.ops.ConjugateTranspose
2022-11-10 15:35:27 +08:00
计算 `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` 中存在相同元素。