mlx.nn.relu#

class relu(x)#

Applies the Rectified Linear Unit.

Simply mx.maximum(x, 0).