Skip to content
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

Merged
merged 21 commits into from
Oct 14, 2020

Conversation

Ray2020BD
Copy link
Contributor

@Ray2020BD Ray2020BD commented Oct 14, 2020

PR types

Function optimization

PR changes

APIs

Describe

Update example codes of ConstantInitializer & MSRAInitializer

image
image

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -105,10 +105,14 @@ class ConstantInitializer(Initializer):
Examples:
.. code-block:: python

import paddle.fluid as fluid
import paddle
Copy link
Contributor

Choose a reason for hiding this comment

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

缩进和下面的代码保持一致

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link
Contributor

@TCChenlong TCChenlong left a comment

Choose a reason for hiding this comment

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

LGTM

@TCChenlong TCChenlong merged commit b3cfb02 into PaddlePaddle:develop Oct 14, 2020
chen-zhiyu pushed a commit to chen-zhiyu/Paddle that referenced this pull request Oct 15, 2020
…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
@Ray2020BD Ray2020BD deleted the rc20 branch October 16, 2020 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants