eazygrad.sigmoid¶
- eazygrad.sigmoid(input: _Tensor) _Tensor[source]¶
Apply the sigmoid activation elementwise.
- Parameters:
input (_Tensor) – Input tensor.
- Returns:
_Tensor – Tensor containing values in the interval
[0, 1].
Notes
The implementation uses a numerically stable formulation based on the sign of the input.
See also