We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f18e3 commit 83acf1dCopy full SHA for 83acf1d
src/basicfuns.jl
@@ -260,7 +260,7 @@ Return `log(exp(x) - 1)` or the “invsoftplus” function. It is the inverse o
260
[`log1pexp`](@ref) (aka “softplus”).
261
"""
262
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)
+logexpm1(x::Float32) = x <= 9f0 ? log(expm1(x)) : x <= 16f0 ? x - exp(-x) : oftype(exp(-x), x)
264
265
function softplus(x; a::Real=1.0)
266
if a == 1.0
0 commit comments