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.4] #6765

Merged
merged 14 commits into from
Jul 30, 2024
Merged

Conversation

successfulbarrier
Copy link
Contributor

@successfulbarrier successfulbarrier commented Jul 18, 2024

PR types

Bug fixes

PR changes

Docs

Description

给chunk API文档增加图例
对应的英文文档修复为:PaddlePaddle/Paddle#66503

1
添加图片
添加图片
完成chunk的修改
Copy link

paddle-bot bot commented Jul 18, 2024

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

@CLAassistant
Copy link

CLAassistant commented Jul 18, 2024

CLA assistant check
All committers have signed the CLA.

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 22, 2024
@luotao1
Copy link
Collaborator

luotao1 commented Jul 24, 2024

请签署下CLA

Copy link
Collaborator

Choose a reason for hiding this comment

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

图例很直观,想了解下使用什么工具生成的呀? latex 嘛

图例
:::::::::
- **x** (Tensor) - shape=(3,3,3)。
- **chunks** (int) - 值=2。
Copy link
Collaborator

Choose a reason for hiding this comment

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

  • 图例似乎生成错了。 chunk=2 的话,(3,3,3)的 tesnor 没法平分,可以实际跑代码示例测试一下

- **x** (Tensor) - shape=(3,3,3)。
- **chunks** (int) - 值=2。
- **axis** (int|Tensor,可选) - 值=0,对第0个维度进行分割。
.. image:: ../../images/chunk.png
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/chunk.png
.. image:: ../../images/chunk.png
:width: 500

图片太大了,调小些

@successfulbarrier successfulbarrier changed the title 为 Tensor API 文档增加图例 #6614 ,序号【4】 [Docathon][Add API Legend No.4] Jul 25, 2024
Copy link
Collaborator

Choose a reason for hiding this comment

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

得在图中标出 axis=0 是哪个方向

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 cbe3bc4 into PaddlePaddle:develop Jul 30, 2024
2 checks passed
Aoraki-Dream pushed a commit to Aoraki-Dream/docs that referenced this pull request Sep 4, 2024
* Update chunk_cn.rst

test

* 1

添加图片

* Update chunk_cn.rst

添加图片

* Update chunk_cn.rst

完成chunk的修改

* Update chunk_cn.rst

* 修改图片大小

* Update chunk_cn.rst

修改分割数量为3

* 完成pre-commit

* 修改2

* 修改

* 1

* 修改3

* 修改4

* 修改图片
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.

4 participants