mlx.nn.leaky_relu

Contents

mlx.nn.leaky_relu#

class leaky_relu(x, negative_slope=0.01)#

Applies the Leaky Rectified Linear Unit.

Simply mx.maximum(negative_slope * x, x).