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

18 lines
486 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.inverse
=====================
.. py:function:: mindspore.ops.inverse(x)
计算输入矩阵的逆。
参数:
- **x** (Tensor) - 计算的矩阵。`x` 至少是两维的,最后两个维度大小相同。
返回:
Tensorshape和类型和 `x` 相同。
异常:
- **TypeError** - `x` 不是Tensor。
- **ValueError** - `x` 最后两个维度的大小不相同。
- **ValueError** - `x` 的维数小于2。