mlx.nn.leaky_relu

目录

mlx.nn.leaky_relu#

class leaky_relu(x, negative_slope=0.01)#

应用 Leaky Rectified Linear Unit(Leaky ReLU)。

简单来说就是 mx.maximum(negative_slope * x, x)