Skip to content

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

3 participants