flax.linen.activation.log_sigmoid

Contents

flax.linen.activation.log_sigmoid#

flax.linen.activation.log_sigmoid(x)[source]#

Log-sigmoid activation function.

Computes the element-wise function:

\[\mathrm{log\_sigmoid}(x) = \log(\mathrm{sigmoid}(x)) = -\log(1 + e^{-x})\]
Parameters

x – input array

Returns

An array.

See also

sigmoid()