Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Add API Legend No.11 BUAA] #6787

Merged
merged 5 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions docs/api/paddle/rot90_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ rot90

沿 axes 指定的平面将 n 维 tensor 旋转 90 度。当 k 为正数,旋转方向为从 axes[0]到 axes[1],当 k 为负数,旋转方向为从 axes[1]到 axes[0],k 的绝对值表示旋转次数。

下图展示了一个形状为 [2,3,4] 的三维张量在选定旋转方向为 0 到 1 并旋转 1 次··时,通过 rot90 操作转变为形状为 [3,2,4] 的三维张量,我们可以清晰地看到转变前后各元素的对应关系。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 选定旋转方向为 0 到 1 没太明白,是想说旋转平面嘛?
  • 1 次··时 是啥
    最好根据参数描述来说明,方便开发者理解


.. image:: ../../images/api_legend/rot90.png
:alt: 图例
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.. image:: ../../images/api_legend/rot90.png
:alt: 图例
.. image:: ../../images/api_legend/rot90.png
:width: 700
:alt: 图例

图片调小一些


参数
::::::::::

Expand All @@ -22,8 +27,8 @@ rot90

- 在指定平面 axes 上翻转指定次数后的 Tensor,与输入 x 数据类型相同。


代码示例
····
代码示例·
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这部分不需要改

::::::::::

COPY-FROM: paddle.rot90
Binary file added docs/images/api_legend/rot90.png
Luohongzhige marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.