mlx.nn.sigmoid

目录

mlx.nn.sigmoid#

class sigmoid(x)#

应用 sigmoid 函数。

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