Bases: Module
Sigmoid activation function.
This class computes the element-wise sigmoid activation function:
\[\text{Sigmoid}(x) = \frac{1}{1 + e^{-x}}\]
-
__call__(
- input: array,
) → array[source]
Forward pass of the activation function.
- Parameters:
input – The input array, with up to 3 dimensions.
- Returns:
The output array, with same shape as the input array.