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 (Any) – input array

Return type

Any