mlx.nn.relu6#

class relu6(x)#

Applies the Rectified Linear Unit 6.

Applies \(\min(\max(x, 0), 6)\) element wise.