Skip to content

[Docs] Add visual diagrams for paddle.stack to enhance Case 1 & Case 2#7875

Closed
ktopia28 wants to merge 2 commits intoPaddlePaddle:developfrom
ktopia28:add-stack-diagram
Closed

[Docs] Add visual diagrams for paddle.stack to enhance Case 1 & Case 2#7875
ktopia28 wants to merge 2 commits intoPaddlePaddle:developfrom
ktopia28:add-stack-diagram

Conversation

@ktopia28
Copy link

背景/目的:
paddle.stack 文档目前缺乏直观的原理图,对于 axis=0 和 axis=1 的空间维度变换,新手开发者较难理解。

修改内容:

新增了 stack-0.png:可视化展示了三个 [1, 2] 张量在 axis=0 堆叠为 [3, 1, 2] 的“叠罗汉”过程。

新增了 stack-1.png:可视化展示了三个 [2, 2] 张量在 axis=1 堆叠为 [2, 3, 2] 的“并排”过程。

更新了 stack_cn.rst:在文档对应的 Case 处正确引入了这两张图片。

备注:
两张图保持了统一的蓝色系配色,并标注了明确的维度信息。这是我参与 Paddle Docathon 活动的第一次贡献。

@paddle-bot
Copy link

paddle-bot bot commented Mar 18, 2026

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

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Mar 19, 2026
@luotao1 luotao1 closed this Mar 19, 2026
@luotao1 luotao1 reopened this Mar 19, 2026
@CLAassistant
Copy link

CLAassistant commented Mar 19, 2026

CLA assistant check
All committers have signed the CLA.

@luotao1
Copy link
Collaborator

luotao1 commented Mar 19, 2026

请签署CLA

@Echo-Nie
Copy link
Collaborator

Sry, your revised Fig lacks axis/shape details. We'll close this PR.
Feel free to reopen it if you have new ideas later! Thx!

@Echo-Nie Echo-Nie closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor HappyOpenSource 快乐开源活动issue与PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants