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

elu support alpha < 0 #37316

Merged
merged 4 commits into from
Nov 22, 2021
Merged

elu support alpha < 0 #37316

merged 4 commits into from
Nov 22, 2021

Conversation

zhupengyang
Copy link
Contributor

@zhupengyang zhupengyang commented Nov 18, 2021

PR types

Bug fixes

PR changes

OPs

Describe

  • 修正elu的公式
    原公式
elu(x) = max(0, x) + min(0, α ∗ (e^x − 1))

现公式

elu(x) = x, if x > 0
elu(x) = α ∗ (e^x − 1), if x <= 0
  • elu_在alpha<0的情况下进行报错
  • 修复elu在alpha<0的情况下计算错误的问题

中文文档PR
image
image
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.

Copy link
Contributor

@hong19860320 hong19860320 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

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhupengyang zhupengyang merged commit e3503de into PaddlePaddle:develop Nov 22, 2021
zhupengyang added a commit to zhupengyang/Paddle that referenced this pull request Nov 23, 2021
Superjomn pushed a commit that referenced this pull request Nov 23, 2021
@zhupengyang zhupengyang deleted the elu_1 branch June 5, 2023 02:34
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.

3 participants