SoftShrink

Softshrink activation function.

Transforms input 'x' according formula:

if x lambda: return x − lambda
if x < -lambda: return x + lambda
otherwise return 0

A faster approximation of the sigmoid activation.

Calls SoftShrinkActivation under the hood.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int