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.23] #6812

Merged
merged 12 commits into from
Sep 2, 2024
Merged

Conversation

EgoistSA
Copy link
Contributor

@EgoistSA EgoistSA commented Aug 5, 2024

PR types
Bug fixes

PR changes
Docs

Description
给slice API文档增加图例
相应英文文档链接:PaddlePaddle/Paddle#67897

@zyfncg @sunzhongkai588

Copy link

paddle-bot bot commented Aug 5, 2024

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

@EgoistSA
Copy link
Contributor Author

已调整图例大小 @sunzhongkai588

Comment on lines 38 to 42
下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。

.. image:: ../../images/api_legend/slice.png
:width: 600
:alt: 图例
Copy link
Collaborator

Choose a reason for hiding this comment

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

好像重复了?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好像是push时出现了问题,已经重新修正 @sunzhongkai588

@EgoistSA
Copy link
Contributor Author

已修正,请检查 @sunzhongkai588

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,英文文档也补充一下 @EgoistSA

@luotao1 luotao1 merged commit ce6bb13 into PaddlePaddle:develop Sep 2, 2024
2 checks passed
Aoraki-Dream pushed a commit to Aoraki-Dream/docs that referenced this pull request Sep 4, 2024
* 修改参数名不统一的错误,如kernel_size->kernel_sizes,dilation->dilations

* 为slice文档添加图例

* 为slice文档添加图例

* 为slice文档添加图例

* Update docs/api/paddle/slice_cn.rst

* 更新slice文档

* 更新slice文档图例大小

* 更新slice文档图例大小

---------

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
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.

3 participants