mindspore.mint.inverse ====================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/mint/mindspore.mint.func_inverse.rst :alt: 查看源文件 .. py:function:: mindspore.mint.inverse(input) 计算输入矩阵的逆。 参数: - **input** (Tensor) - 计算的矩阵。`input` 至少是两维的,最后两个维度大小相同,并且矩阵需要可逆。 返回: Tensor,其类型和shape与 `input` 相同。 异常: - **ValueError** - `input` 最后两个维度的大小不相同。 - **ValueError** - `input` 不是空并且它的维度小于2维。 - **ValueError** - `input` 的维度大于6。