-
Notifications
You must be signed in to change notification settings - Fork 764
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
[SCU][Docathon][Add API Legend No.7] expand -part #6978
Conversation
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-6978.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
docs/api/paddle/expand_cn.rst
Outdated
|
||
Original Tensor显示了一个形状为 [3]的一维张量[1, 2, 3]。 | ||
通过 tensor.expand((2, 3))方法被广播扩展为一个形状为[2, 3]的二维张量。 | ||
其中每一行均为原张量的值。expand的结果在右侧图中展示。 | ||
|
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.
Original Tensor显示了一个形状为 [3]的一维张量[1, 2, 3]。 | |
通过 tensor.expand((2, 3))方法被广播扩展为一个形状为[2, 3]的二维张量。 | |
其中每一行均为原张量的值。expand的结果在右侧图中展示。 | |
**示例图解说明**: | |
Original Tensor 显示了一个形状为 [3] 的一维张量 [1, 2, 3]。通过 paddle.expand 方法(参数 ``shape = [2, 3]``)被广播扩展为一个形状为 [2, 3] 的二维张量。 |
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.
再加一下图片的引用
docs/images/api_legend/expand.png
Outdated
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.
拓展后的2d tensor以一个矩阵的形式展现
@sunzhongkai588 ,辛苦老师看看还有什么问题 |
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,英文文档也加一下
Add image of expand and rewrite expand_cn.rst
中文文档链接:docs/api/paddle/expand_cn.rst
@DefTruth
@sunzhongkai588