mlx.nn.relu6#

relu6(x)#

Applies the Rectified Linear Unit 6.

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