mlx.nn.relu6

目录

mlx.nn.relu6#

class relu6(x)#

应用 Rectified Linear Unit 6 函数。

逐元素应用 \(\min(\max(x, 0), 6)\)