Skip to content

Commit

Permalink
Merge pull request #443 from Sleort/patch-1
Browse files Browse the repository at this point in the history
Slightly faster softplus
  • Loading branch information
CarloLucibello authored Nov 18, 2022
2 parents 7087954 + 7eea8b8 commit f7597d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/activations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ julia> softplus(16f0)
16.0f0
```
"""
softplus(x) = log1p(exp(-abs(x))) + max(x, 0)
softplus(x) = log1p(exp(-abs(x))) + relu(x)

"""
logcosh(x)
Expand Down

0 comments on commit f7597d9

Please sign in to comment.