-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Update example codes of ConstantInitializer & MSRAInitializer #27915
Conversation
Thanks for your contribution! |
python/paddle/fluid/initializer.py
Outdated
@@ -105,10 +105,14 @@ class ConstantInitializer(Initializer): | |||
Examples: | |||
.. code-block:: python | |||
|
|||
import paddle.fluid as fluid | |||
import paddle |
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.
fixed
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
…Paddle#27915) * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of constant in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * Add api of KaimingUniform & KaimingNormal in paddle.nn.initializer * test=document_fix * test=document_fix
PR types
Function optimization
PR changes
APIs
Describe
Update example codes of ConstantInitializer & MSRAInitializer