Skip to content

修复 paddle.expand 等 API 的文档 #6156

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

Merged
merged 5 commits into from
Oct 30, 2023

Conversation

yuchen202
Copy link
Contributor

@yuchen202 yuchen202 commented Sep 1, 2023

PR types

Bug fixes

PR changes

Docs

Description

涉及到的 API 有
paddle\expand
paddle\nn\functional\interpolate
paddle\sum
paddle/nn/Dropout

关联文档:PaddlePaddle/Paddle#56884

@paddle-bot
Copy link

paddle-bot bot commented Sep 1, 2023

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

对应的英文文档修改情况为:
PaddlePaddle/Paddle#56884
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
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

- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
返回
::::::::::::

``Tensor``,在指定维度上进行求和运算的 Tensor,数据类型和输入数据类型一致
``Tensor``,在指定维度上进行求和运算的 Tensor,如果 x.dtype= 'bool', x.dtype= 'int32',它的数据类型为 'int64',否则它的数据类型与 x 相同
Copy link
Collaborator

Choose a reason for hiding this comment

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

其实这句话可以优化下,比如改成 。如果输入的数据类型为 'bool' 或 'int32', 则返回的数据类型为 'int32' 。除此之外返回的数据类型和输入的数据类型一致

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
@sunzhongkai588 sunzhongkai588 merged commit 03581ea into PaddlePaddle:develop Oct 30, 2023
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