Contents

MLCActivationType.hardShrink

An activation type that implements the hard shrink activation function.

Declaration

case hardShrink

Discussion

This activation type implements the following function:

f(x) = x, if x > a or x < −a, else 0

See Also

Enumeration Cases