Skip to content

Commit e46137d

Browse files
committed
Remove stable sigmoid for non-dual numbers
1 parent b99596a commit e46137d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/activation.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Return `log(cosh(x))` which is computed in a numerically stable way.
123123
logcosh(x::T) where T = x + softplus(-2x) - log(convert(T, 2))
124124

125125
# Provide an informative error message if activation functions are called with an array
126-
for f in (, :σ_stable, :logσ, :relu, :leakyrelu, :elu, :gelu, :swish, :selu, :softsign, :(StatsFuns.softplus), :logcosh)
126+
for f in (, :logσ, :relu, :leakyrelu, :elu, :gelu, :swish, :selu, :softsign, :(StatsFuns.softplus), :logcosh)
127127
@eval $(f)(x::AbstractArray, args...) =
128128
error("Use broadcasting (`", $(string(f)), ".(x)`) to apply activation functions to arrays.")
129129
end

0 commit comments

Comments
 (0)