jax.nn.sigmoid

Contents

jax.nn.sigmoid#

jax.nn.sigmoid(x)[source]#

Sigmoid activation function.

Computes the element-wise function:

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

x (ArrayLike) – input array

Returns:

An array.

Return type:

Array

See also

log_sigmoid()