Merge pull request #1446 from joaogui1/selu

[Done] Fixed selu activation
This commit is contained in:
James Bradbury 2019-10-07 12:00:54 -07:00 committed by GitHub
commit 2b46e0dbde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ def selu(x):
"""Scaled exponential linear unit activation"""
alpha = 1.6732632423543772848170429916717
scale = 1.0507009873554804934193349852946
return scale * leaky_relu(x, alpha)
return scale * elu(x, alpha)
@jarrett
def gelu(x):