mlx.nn.ReLU#

class ReLU#
Applies the Rectified Linear Unit.

Simply mx.maximum(x, 0).

See relu() for the functional equivalent.

Methods