-
Notifications
You must be signed in to change notification settings - Fork 822
修复 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
The head ref may contain hidden characters: "0901\u6587\u6863"
Conversation
感谢你贡献飞桨文档,文档预览构建中,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>
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
docs/api/paddle/sum_cn.rst
Outdated
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。 | ||
返回 | ||
:::::::::::: | ||
|
||
``Tensor``,在指定维度上进行求和运算的 Tensor,数据类型和输入数据类型一致。 | ||
``Tensor``,在指定维度上进行求和运算的 Tensor,如果 x.dtype= 'bool', x.dtype= 'int32',它的数据类型为 'int64',否则它的数据类型与 x 相同。 |
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.
其实这句话可以优化下,比如改成 。如果输入的数据类型为 'bool' 或 'int32', 则返回的数据类型为 'int32' 。除此之外返回的数据类型和输入的数据类型一致
Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
PR types
Bug fixes
PR changes
Docs
Description
涉及到的 API 有
paddle\expand
paddle\nn\functional\interpolate
paddle\sum
paddle/nn/Dropout
关联文档:PaddlePaddle/Paddle#56884