Class HardShrink
java.lang.Object
smile.deep.activation.ActivationFunction
smile.deep.activation.HardShrink
- All Implemented Interfaces:
Serializable, Function<Tensor,Tensor>, Layer
-
Constructor Details
-
HardShrink
public HardShrink()Constructor. -
HardShrink
public HardShrink(double lambda) Constructor.- Parameters:
lambda- The lambda value in the formulation.
-
-
Method Details
-
forward
-