Contents

MLCActivationType.softShrink

An activation type that implements the soft shrink activation function.

Declaration

case softShrink

Discussion

This activation type implements the following function:

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

See Also

Enumeration Cases