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

【PaddlePaddle Hackathon】4、在 Paddle 中新增 RReLU #37047

Closed
wants to merge 2 commits into from

Conversation

gsq7474741
Copy link
Contributor

PR types

New features

PR changes

OPs

Describe

@paddle-bot-old
Copy link

paddle-bot-old bot commented Nov 8, 2021

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

@gsq7474741 gsq7474741 reopened this Nov 9, 2021

"""
np.random.seed(seed)
negative_slope = np.random.uniform(lower, upper, [1])
Copy link
Contributor

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应该是需要自己实现的

Copy link
Contributor Author

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接口

Copy link
Contributor

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函数封装成了类而已

@paddle-bot-old
Copy link

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.

@paddle-bot-old paddle-bot-old bot added the contributor External developers label Sep 1, 2022
@paddle-bot-old paddle-bot-old bot closed this Jan 11, 2023
@paddle-bot
Copy link

paddle-bot bot commented Jan 11, 2023

很抱歉,经过我们的反复讨论,你的PR暂未达到合入标准,请阅读飞桨原生算子开发规范,你可以重新提交新的PR,我们先将此PR关闭,感谢你的贡献。
Sorry to inform you that through our discussion, your PR fails to meet the merging standard (Reference: Paddle Custom Operator Design Doc). You can also submit an new one. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants