Skip to content

Commit 83acf1d

Browse files
Update src/basicfuns.jl
Co-authored-by: David Widmann <[email protected]>
1 parent 35f18e3 commit 83acf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/basicfuns.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Return `log(exp(x) - 1)` or the “invsoftplus” function. It is the inverse o
260260
[`log1pexp`](@ref) (aka “softplus”).
261261
"""
262262
logexpm1(x::Real) = x <= 18.0 ? log(_expm1(x)) : x <= 33.3 ? x - exp(-x) : oftype(exp(-x), x)
263-
logexpm1(x::Float32) = x <= 9.0f0 ? log(expm1(x)) : x <= 16.0f0 ? x - exp(-x) : oftype(exp(-x), x)
263+
logexpm1(x::Float32) = x <= 9f0 ? log(expm1(x)) : x <= 16f0 ? x - exp(-x) : oftype(exp(-x), x)
264264

265265
function softplus(x; a::Real=1.0)
266266
if a == 1.0

0 commit comments

Comments
 (0)