-
Notifications
You must be signed in to change notification settings - Fork 873
修改reshape API文档 #6569
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
修改reshape API文档 #6569
Conversation
…y-cool-stuff add an image to explain how reshape API works
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6569.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
| 下图展示了第一个例子中的情形——一个形状为[2,4,6]的三维张量通过 reshape 操作转变为形状为[6,8]的二维张量,同时保持了张量中元素的顺序和值不变。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。 | ||
|
|
||
| .. image:: ../../images/reshape.png | ||
| :alt: 图例 |
There was a problem hiding this comment.
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轴排列,以此类推
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的好的,感谢纠正!我去修改一下。
There was a problem hiding this comment.
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,不用调整。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已按要求修改,麻烦再查验一下,非常感谢!
…y-cool-stuff add an image to explain how reshape() works.
…y-cool-stuff add an image to explain how reshape API works
heavyrain-lzy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! LGTM.
sunzhongkai588
left a comment
There was a problem hiding this 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 文档的图例”任务,也请期待~
PR types
Bug fixes
PR changes
Docs
Description
给reshape API文档增加图例
对应的英文文档修复为:PaddlePaddle/Paddle#63365