mlx.nn.ReLU#

class mlx.nn.ReLU#
Applies the Rectified Linear Unit.

Simply mx.maximum(x, 0).

See relu() for the functional equivalent.