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

16 lines
295 B
ReStructuredText
Raw 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.t
===============
.. py:function:: mindspore.ops.t(x)
转置2维Tensor。1维Tensor按原样返回。
参数:
- **x** (Tensor) - 输入Tensor。
返回:
Tensor`x` 的转置。
异常:
- **ValueError** - `x` 的维度大于2。