Skip to content

Conversation

@WoWYoYLoL
Copy link
Contributor

@WoWYoYLoL WoWYoYLoL commented Mar 30, 2024

PR types

Bug fixes

PR changes

Docs

Description

给reshape API文档增加图例

对应的英文文档修复为:PaddlePaddle/Paddle#63365

@paddle-bot
Copy link

paddle-bot bot commented Mar 30, 2024

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

@CLAassistant
Copy link

CLAassistant commented Mar 30, 2024

CLA assistant check
All committers have signed the CLA.

@WoWYoYLoL WoWYoYLoL changed the title 快乐开源热身任务:修改飞桨文档 修改reshape API文档 Mar 30, 2024
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Apr 1, 2024
下图展示了第一个例子中的情形——一个形状为[2,4,6]的三维张量通过 reshape 操作转变为形状为[6,8]的二维张量,同时保持了张量中元素的顺序和值不变。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。

.. image:: ../../images/reshape.png
:alt: 图例
Copy link
Contributor

Choose a reason for hiding this comment

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

感谢对PaddlePaddle开源框架的支持。Origin Tensor Shape: [2,4,6]的数据标注有些问题,Axis0是变化最慢的轴,Axis2是变化最快的轴,数据[1,2,3,4,5,6]应该是沿着Axis2轴排列,以此类推

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的好的,感谢纠正!我去修改一下。

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! Origin Tensor Shape: [2,4,6]的图例中每个轴的刻度单位应该是1,请调整Axis0和Axis1的刻度单位为1。Axis2的刻度单位已经是1,不用调整。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已按要求修改,麻烦再查验一下,非常感谢!

Copy link
Contributor

@heavyrain-lzy heavyrain-lzy left a comment

Choose a reason for hiding this comment

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

Good job! LGTM.

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~非常棒

PS:受到了该 PR 的启发,之后会发起“增加 Tensor 操作 API 文档的图例”任务,也请期待~

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