-
Notifications
You must be signed in to change notification settings - Fork 876
Add docs for API ResNetBasicBlock #5074
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
Conversation
|
感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-5074.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html |
a1e6ca8 to
2aa2d41
Compare
qili93
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
|
首先,英文文档需要好好修改一下,虽然已经合入了,但是官网预览存在很大问题,详见:https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/xpu/resnet_block/ResNetBasicBlock_en.html 其次,中英文文档的目录层级不一致,英文文档比中文多一个目录层级,需要统一,另外中文文档有一些缺失,建议补充 |
| - **scale_attr** (ParamAttr,可选) - 指定对应 ``BatchNorm`` 权重参数属性的对象。默认值为None,表示使用默认的权重参数属性。具体用法请参见 :ref:`cn_api_fluid_ParamAttr` 。 | ||
| - **bias_attr** (ParamAttr,可选) - 指定对应 ``BatchNorm`` 偏置参数属性的对象。默认值为None,表示使用默认的偏置参数属性。具体用法请参见 :ref:`cn_api_fluid_ParamAttr` 。 | ||
| - **moving_mean_name** (str,可选) - ``moving_mean`` 的名称,存储全局均值。默认值:None。 | ||
| - **moving_var_name** (string,可选) - ``moving_var`` 的名称,存储全局方差。默认值:None。 |
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.
中文文档使用COPY-FROM的方式,和英文对齐
| ch_in = 4 | ||
| ch_out = 8 | ||
| x_data = np.random.random(size=(2, ch_in, 16, 16)).astype('float32') | ||
| x = paddle.to_tensor(x_data) |
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.
这里生成输入数据可以直接使用paddle的api,不需要另外引入numpy
2aa2d41 to
b26e949
Compare
b26e949 to
1106954
Compare
Ligoml
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 for docs
1106954 to
b8a84a1
Compare

增加ResNetBasicBlock API接口的文档。
related pr: PaddlePaddle/Paddle#44171