mirror of
https://github.com/ROCm/jax.git
synced 2025-04-17 20:36:05 +00:00
Merge pull request #1446 from joaogui1/selu
[Done] Fixed selu activation
This commit is contained in:
commit
2b46e0dbde
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user