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

No.18 paddle.nn.GLU易用性提升 #58632

Merged
merged 7 commits into from
Nov 9, 2023
Merged

Conversation

YibinLiu666
Copy link
Contributor

@YibinLiu666 YibinLiu666 commented Nov 2, 2023

PR types

Others

PR changes

Others

Description

#55883

Copy link

paddle-bot bot commented Nov 2, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 2, 2023
Copy link

paddle-bot bot commented Nov 2, 2023

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Nov 3, 2023
@luotao1
Copy link
Contributor

luotao1 commented Nov 6, 2023

对应的中文文档也需要补充

@YibinLiu666
Copy link
Contributor Author

已经添加中文文档

@YibinLiu666
Copy link
Contributor Author

大部分CI已过,能否麻烦老师review @zxcd

@@ -0,0 +1,76 @@
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

没必要新增一个测试文件,放到这里就可以test/legacy_test/test_glu.py

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

y_var = act(x_var)
y_np = y_var.numpy()
out = glu(self.x, dim)
np.testing.assert_allclose(y_np, out, rtol=1e-05)
Copy link
Contributor

Choose a reason for hiding this comment

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

这里不需要rtol参数吧

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@zxcd zxcd left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhwesky2010 zhwesky2010 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 55d029d into PaddlePaddle:develop Nov 9, 2023
28 checks passed
danleifeng pushed a commit to danleifeng/Paddle that referenced this pull request Nov 14, 2023
* support paddle.nn.GLU as a layer

* add extra_repr ut

* add test for type

* update doc

* update test, merge two test file

* delete atol
SecretXV pushed a commit to SecretXV/Paddle that referenced this pull request Nov 28, 2023
* support paddle.nn.GLU as a layer

* add extra_repr ut

* add test for type

* update doc

* update test, merge two test file

* delete atol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants