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

Conversation

Luohongzhige
Copy link
Contributor

尝试为 rot90 增加图例。

Copy link

paddle-bot bot commented Jul 24, 2024

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6787.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 24, 2024
Comment on lines 25 to 31

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

Choose a reason for hiding this comment

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

这部分不需要改

Comment on lines 14 to 15
.. 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: 图例

图片调小一些

@@ -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 次··时 是啥
    最好根据参数描述来说明,方便开发者理解

docs/images/api_legend/rot90.png Outdated Show resolved Hide resolved
Copy link
Contributor Author

@Luohongzhige Luohongzhige left a comment

Choose a reason for hiding this comment

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

已修改

Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 left a comment

Choose a reason for hiding this comment

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

LGTM,英文文档也加一下

@luotao1 luotao1 merged commit 5dc4b9c into PaddlePaddle:develop Jul 31, 2024
2 checks passed
Whsjrczr pushed a commit to Whsjrczr/docs that referenced this pull request Aug 5, 2024
* rot90

* change the description and the figure

* Update rot90_cn.rst

* Update rot90_cn.rst

* Update rot90_cn.rst
Aoraki-Dream pushed a commit to Aoraki-Dream/docs that referenced this pull request Sep 4, 2024
* rot90

* change the description and the figure

* Update rot90_cn.rst

* Update rot90_cn.rst

* Update rot90_cn.rst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants