mlx.nn.relu

目录

mlx.nn.relu#

class relu(x)#

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

简而言之,就是 mx.maximum(x, 0)