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

[SCU][Docathon][Add API Legend No.31]为stack API添加图例 #6933

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
18 changes: 18 additions & 0 deletions docs/api/paddle/stack_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ stack
[3.0, 4.0]
[5.0, 6.0] ] ]

**图解说明(一)**:

下图展示了示例一中的情形——三个形状为[1, 2]的二维张量通过 stack 操作,在 axis = 0 的维度上堆叠为形状为[3, 1, 2]的三维张量。

.. figure:: ../../images/api_legend/stack/stack-0.png
:width: 1000
:alt: 图示一
:align: center

**图解说明(二)**:

下图展示了如下所述情形——三个形状为[2, 2]的二维张量通过 stack 操作,在 axis = 1 的维度上堆叠为形状为[2, 3, 2]的三维张量。

.. figure:: ../../images/api_legend/stack/stack-1.png
:width: 1000
:alt: 图示二
:align: center

参数
:::::::::

Expand Down
Binary file added docs/images/api_legend/stack/stack-0.png
Copy link
Collaborator

Choose a reason for hiding this comment

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

图做的很好~一点小优化建议,两张图都同时改一下

  • 轴上不用标size,比如size = 1,因为这些信息比较显而易见,尽量保持图片的简洁

Copy link
Contributor Author

@mori0umi mori0umi Nov 11, 2024

Choose a reason for hiding this comment

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

感谢您的建议,已按意见修改

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/api_legend/stack/stack-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.