mlx.nn.leaky_relu

目錄

mlx.nn.leaky_relu#

class leaky_relu(x, negative_slope=0.01)#

套用帶洩漏的修正線性單元(Leaky ReLU)。

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