mlx.nn.silu#

class mlx.nn.silu(x)#

Applies the Sigmoid Linear Unit.

Applies \(x \sigma(x)\) element wise, where \(\sigma(\cdot)\) is the logistic sigmoid.