mlx.nn.SiLU#

class mlx.nn.SiLU#

Applies the Sigmoid Linear Unit. Also known as Swish.

See silu() for the functional equivalent.