mindspore.ops.rot90 ======================= .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/br_base/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/br_base/docs/api/api_python/ops/mindspore.ops.func_rot90.rst :alt: 查看源文件 .. 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