mlx.nn.LeakyReLU

目錄

mlx.nn.LeakyReLU#

class LeakyReLU(negative_slope=0.01)#

Applies the Leaky Rectified Linear Unit.

就是 mx.maximum(negative_slope * x, x)

參數:

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

方法