Skip to content
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

修复 paddle\add 等 API 的文档 #6197

Merged
merged 3 commits into from
Sep 25, 2023
Merged

Conversation

yuchen202
Copy link
Contributor

@yuchen202 yuchen202 commented Sep 18, 2023

PR types

Bug fixes

PR changes

Docs

Description

Issue from:「文档评测」NO.1

涉及到的 API 有:
docs\api\paddle\add_cn.rst
docs\api\paddle\full_cn.rst
docs\api\paddle\nn\Conv2DTranspose_cn.rst
docs\api\paddle\nn\initializer\Constant_cn.rst
docs\api\paddle\rand_cn.rst
docs\api\paddle\shape_cn.rst
docs\api\paddle\static\InputSpec_cn.rst
docs\api\paddle\static\load_inference_model_cn.rst
docs\api\paddle\vision\transforms\Normalize__upper_cn.rst

关联文档(如有):PaddlePaddle/Paddle#57434

相关链接:
#6187
#6165

@sunzhongkai588

@yuchen202 yuchen202 changed the title 修复 paddle\nn\layer\norm 等 API 的文档 修复 paddle\add 等 API 的文档 Sep 18, 2023
@sunzhongkai588 sunzhongkai588 added the HappyOpenSource 快乐开源活动issue与PR label Sep 20, 2023
docs/api/paddle/add_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/full_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/full_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/full_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/rand_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/shape_cn.rst Outdated Show resolved Hide resolved
docs/api/paddle/static/InputSpec_cn.rst Outdated Show resolved Hide resolved
- **dtype** (np.dtype|str,可选)- 数据类型,支持 bool,float16,float32,float64,int8,int16,int32,int64,uint8。默认值为 float32。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **name** (str,可选) - 变量的名称,具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **stop_gradient**() - 不知道咋写
Copy link
Collaborator

Choose a reason for hiding this comment

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

原则上是应该写 stop_gradient (bool,可选) - 提示是否应该停止计算梯度,默认值为 False,表示不停止计算梯度。 不过不写也没事,因为算是一个非常常见的参数。

docs/api/paddle/static/load_inference_model_cn.rst Outdated Show resolved Hide resolved
- **dtype** (np.dtype|str,可选)- 数据类型,支持 bool,float16,float32,float64,int8,int16,int32,int64,uint8。默认值为 float32。
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **name** (str,可选) - 变量的名称,具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。
- **stop_gradient**() - 不知道咋写
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- **stop_gradient**() - 不知道咋写

删掉吧

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

@luotao1 luotao1 merged commit 3ed3275 into PaddlePaddle:develop Sep 25, 2023
3 checks passed
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.

4 participants