MLCActivationType.softShrink
An activation type that implements the soft shrink activation function.
Declaration
case softShrinkDiscussion
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
MLCActivationType.absoluteMLCActivationType.celuMLCActivationType.clampMLCActivationType.eluMLCActivationType.geluMLCActivationType.hardShrinkMLCActivationType.hardSigmoidMLCActivationType.hardSwishMLCActivationType.linearMLCActivationType.logSigmoidMLCActivationType.noneMLCActivationType.reluMLCActivationType.relunMLCActivationType.seluMLCActivationType.sigmoid