hardtanh

    hardtanh激活层(Hardtanh Activation Operator)。计算公式如下:

    hardtanh - 图1

    为输入的 Tensor

    ,数据类型和形状同 一致。