Build graph: some other modules point to current module
Build graph: some other modules point to current module
upstream variables
Variable containing current module
A Single Shape, does not include the batch dimension.
The threshold value.
The threshold value. Default is 0.5.
(Since version 0.3.0) please use recommended saveModule(path, overWrite)
Applies the soft shrinkage function element-wise to the input.
⎧ x - value, if x > value f(x) = ⎨ x + value, if x < -value ⎩ 0, otherwise
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Remark: This layer is from Torch and wrapped in Keras style.
The numeric type of parameter(e.g. weight, bias). Only support float/double now.