mlx.nn.ReLU

目录

mlx.nn.ReLU#

class ReLU#
应用修正线性单元 (Rectified Linear Unit)。

mx.maximum(x, 0)

请参阅 relu() 以了解其函数式等效项。

方法