mlx.nn.LeakyReLU

目录

mlx.nn.LeakyReLU#

class LeakyReLU(negative_slope=0.01)#

应用 Leaky 修正线性单元 (Leaky Rectified Linear Unit)。

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

参数:

negative_slope – 控制负斜率的角度。默认值: 1e-2

方法