mlx.nn.relu

class mlx.nn.relu(x)

Applies the Rectified Linear Unit.

Simply mx.maximum(x, 0).