mlx.nn.Sigmoid

Contents

mlx.nn.Sigmoid#

class Sigmoid#

Applies the sigmoid function, element-wise.

\[\text{Sigmoid}(x) = \sigma(x) = \frac{1}{1 + \exp(-x)}\]

Methods