mlx.nn.elu

Contents

mlx.nn.elu#

class elu(x, alpha=1.0)#

Applies the Exponential Linear Unit.

Simply mx.where(x > 0, x, alpha * (mx.exp(x) - 1)).