mlx.nn.LeakyReLU

目录

mlx.nn.LeakyReLU#

class LeakyReLU(negative_slope=0.01)#

Applies the Leaky Rectified Linear Unit.

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

参数:

negative_slope -- Controls the angle of the negative slope. Default: 1e-2

Methods