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

16 lines
477 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.rot90
=======================
.. py:function:: mindspore.ops.rot90(input, k, dims)
沿指定维度的平面内将n-D tensor旋转90度。
如果k>0旋转方向是从第一轴朝向第二轴如果k<0旋转方向从第二轴朝向第一轴。
参数:
- **input** (Tensor) - 输入tensor。
- **k** (int) - 旋转的次数。
- **dims** (Union[list(int), tuple(int)]) - 指定维度。
返回:
Tensor