[DOC] print and clip api, test=develop#2714
Merged
zhupengyang merged 9 commits intoPaddlePaddle:developfrom Sep 30, 2020
qili93:print_clip_api_doc
Merged
[DOC] print and clip api, test=develop#2714zhupengyang merged 9 commits intoPaddlePaddle:developfrom qili93:print_clip_api_doc
zhupengyang merged 9 commits intoPaddlePaddle:developfrom
qili93:print_clip_api_doc
Conversation
|
Thanks for your contribution! |
Contributor
Author
Contributor
Author
TCChenlong
reviewed
Sep 29, 2020
|
|
||
| .. code-block:: python | ||
|
|
||
| import paddle.fluid as fluid |
Collaborator
There was a problem hiding this comment.
上面的Variable -> Tensor
不用单独写返回类型~
Contributor
Author
There was a problem hiding this comment.
确认过,静态图还是Variable,不用修改
| - **need_clip** (function, optional) - 类型: 函数。用于指定需要梯度裁剪的参数,该函数接收一个 ``Parameter`` ,返回一个 ``bool`` (True表示需要裁剪,False不需要裁剪)。默认为None,此时会裁剪网络中全部参数。 | ||
|
|
||
| **代码示例1:静态图** | ||
| **代码示例1:动态图** |
RichardWooSJTU
pushed a commit
to RichardWooSJTU/docs
that referenced
this pull request
Apr 8, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Change the code samples of the following API:
Corresponding Paddle PR: PaddlePaddle/Paddle#27670