-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【PaddlePaddle Hackathon】4、在 Paddle 中新增 RReLU #37047
Conversation
Thanks for your contribution! |
|
||
""" | ||
np.random.seed(seed) | ||
negative_slope = np.random.uniform(lower, upper, [1]) |
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.
negative_slope 应该对输入Tensor中每个元素做random,而不是一起做。
这个op应该是需要自己实现的
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.
@zhiboniu 您好,请问是否可以通过逐元素乘一个被mask的随机tensor实现(输入大于0的位置被置为1),还有就是是否可以只提供nn.Layer接口而不提供nn.functional接口
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.
乘一个被mask的随机tensor并不是一个好的实现。
nn.Layer实际就是把nn.functional函数封装成了类而已
Sorry to inform you that c0cde21's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
很抱歉,经过我们的反复讨论,你的PR暂未达到合入标准,请阅读飞桨原生算子开发规范,你可以重新提交新的PR,我们先将此PR关闭,感谢你的贡献。 |
PR types
New features
PR changes
OPs
Describe