-
Notifications
You must be signed in to change notification settings - Fork 876
[Docathon][Add CN Doc No.28-29] #6382
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
Changes from 5 commits
b74b4ff
1202e6e
3487822
4b4d596
410a607
cfb6171
8791f92
7c334a8
13cf118
773a236
a599e60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| .. _cn_api_paddle_amp_debugging_check_layer_numerics: | ||
|
|
||
| check_layer_numerics | ||
| ------------------------------- | ||
|
|
||
| .. py:function:: paddle.amp.debugging.check_layer_numerics(func) | ||
|
|
||
| 这个装饰器用于检查层的输入和输出数据的数值。 | ||
|
|
||
|
|
||
| 参数 | ||
| ::::::::: | ||
|
|
||
| - **func** (callable) – 将要被装饰的函数。 | ||
|
|
||
| 返回 | ||
| ::::::::: | ||
| 返回一个被装饰后的函数(callable)。这个新的函数会在原来的函数基础上加上数值检查的功能。 | ||
|
|
||
|
|
||
| 代码示例 | ||
| :::::::::::: | ||
|
|
||
| COPY-FROM: paddle.amp.debugging.check_layer_numerics | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||
| .. _cn_api_paddle_incubate_nn_functional_fused_linear_activation: | ||||||
|
||||||
|
|
||||||
| fused_linear_activation | ||||||
| ------------------------------- | ||||||
|
|
||||||
| .. py:function:: paddle.incubate.nn.functional.fused_linear_activation(x, y, bias, trans_x=False, trans_y=False, activation=None) | ||||||
|
|
||||||
| 全连接线性和激活变换操作符。该方法要求 CUDA 版本大于等于 11.6。 | ||||||
|
|
||||||
|
|
||||||
| 参数 | ||||||
| ::::::::: | ||||||
|
|
||||||
| - **x** (Tensor) – 需要进行乘法运算的输入 Tensor 。 | ||||||
| - **y** (Tensor) – 需要进行乘法运算的权重 Tensor 。它的阶数必须为2。 | ||||||
| - **bias** (Tensor) – 输入的偏差Tensor,该偏差会加到矩阵乘法的结果上。 | ||||||
|
||||||
| - **bias** (Tensor) – 输入的偏差Tensor,该偏差会加到矩阵乘法的结果上。 | |
| - **bias** (Tensor) – 输入的偏置 Tensor,该偏置会加到矩阵乘法的结果上。 |
Outdated
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.
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.
好哩!
Outdated
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.
返回类型 + 描述的格式的
例如:
Tensor,变换之后的 Tensor

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.