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

fix alpha dropout bug when p=1 #26977

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

huangjun12
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Describe

fix alpha dropout bug when p=1

@paddle-bot-old
Copy link

paddle-bot-old bot commented Sep 3, 2020

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

@@ -43,7 +43,7 @@ def test_check_grad_normal(self):
class TestDropoutOpInput1d(OpTest):
def setUp(self):
self.op_type = "dropout"
self.inputs = {'X': np.random.random((2000)).astype("float32")}
self.inputs = {'X': np.random.random((2000, )).astype("float32")}

Choose a reason for hiding this comment

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

第 50 行也顺便可以改一下吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好的,赞👍🏻

Copy link

@iclementine iclementine left a comment

Choose a reason for hiding this comment

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

LGTM

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