Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Docathon][Add CN Doc No.28-29] #6382

Merged
merged 11 commits into from
Jan 16, 2024
Merged

[Docathon][Add CN Doc No.28-29] #6382

merged 11 commits into from
Jan 16, 2024

Conversation

Turingg
Copy link
Contributor

@Turingg Turingg commented Dec 10, 2023

PR types
Others

PR changes
Docs

Description
中文文档添加任务
#6193

新增中文文档:
paddle.amp.debugging.check_layer_numerics_cn
paddle.incubate.nn.functional.fused_linear_activation_cn

英文文档链接:

https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/amp/debugging/check_layer_numerics_en.html
https://www.paddlepaddle.org.cn/documentation/docs/en/develop/api/paddle/incubate/nn/functional/fused_linear_activation_en.html

@sunzhongkai588 @niuliling123

Copy link

paddle-bot bot commented Dec 10, 2023

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

Copy link
Collaborator

@ooooo-create ooooo-create left a comment

Choose a reason for hiding this comment

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

有个文件添加路径错了~

@@ -0,0 +1,30 @@
.. _cn_api_paddle_incubate_nn_functional_fused_linear_activation:
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个文件的添加路径不对~
docs/api/paddle/incubate/nn/functional/fused_linear_activation_cn.rst


返回
:::::::::
返回一个被装饰后的函数(callable)。这个新的函数会在原来的函数基础上加上数值检查的功能。
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
返回一个被装饰后的函数(callable)。这个新的函数会在原来的函数基础上加上数值检查的功能。
一个被装饰后的函数(callable)。这个新的函数会在原来的函数基础上加上数值检查的功能。

返回
:::::::::

返回类型为 Tensor。
Copy link
Collaborator

@ooooo-create ooooo-create Dec 22, 2023

Choose a reason for hiding this comment

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

返回类型 + 描述的格式的
例如:
Tensor,变换之后的 Tensor


- **x** (Tensor) – 需要进行乘法运算的输入 Tensor 。
- **y** (Tensor) – 需要进行乘法运算的权重 Tensor 。它的阶数必须为2。
- **bias** (Tensor) – 输入的偏差Tensor,该偏差会加到矩阵乘法的结果上。
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
- **bias** (Tensor) – 输入的偏差Tensor,该偏差会加到矩阵乘法的结果上
- **bias** (Tensor) – 输入的偏置 Tensor,该偏置会加到矩阵乘法的结果上

- **bias** (Tensor) – 输入的偏差Tensor,该偏差会加到矩阵乘法的结果上。
- **trans_x** (bool, 可选) - 是否在乘法之前对 x 进行矩阵转置。
- **trans_y** (bool, 可选) - 是否在乘法之前对 y 进行矩阵转置。
- **activation** (str, 可选) - 目前,可用的激活函数仅限于“GELU”(高斯误差线性单元)和“ReLU”(修正线性单元)。这些激活函数应用于偏置加和的输出上。默认值:None。
Copy link
Collaborator

Choose a reason for hiding this comment

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

这些激活函数应用于添加偏置之后的输出上 这样表达会不会更好~

Copy link
Collaborator

Choose a reason for hiding this comment

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

image
参数记得缩进~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好哩!

@ooooo-create
Copy link
Collaborator

image
需要处理一下 codestyle~

@Turingg
Copy link
Contributor Author

Turingg commented Jan 5, 2024

修正完噜!

@luotao1 luotao1 merged commit 6541327 into PaddlePaddle:develop Jan 16, 2024
1 check passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
contributor HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants