mindspore/docs/api/api_python/mint/mindspore.mint.func_t.rst

21 lines
499 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.mint.t
======================
.. py:function:: mindspore.mint.t(input)
转置输入Tensor。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **input** (Tensor) - 输入Tensor。
返回:
Tensor转置2维Tensor一维Tensor按原样返回。
异常:
- **ValueError** - 输入Tensor维度大于2。
- **ValueError** - 输入空Tensor。
- **TypeError** - 输入非Tensor。