Package smile.deep.activation
Class TanhShrink
java.lang.Object
smile.deep.activation.ActivationFunction
smile.deep.activation.TanhShrink
- All Implemented Interfaces:
Serializable,Function<Tensor,,Tensor> Layer
Hyperbolic Tangent Shrink activation function.
- See Also:
-
Constructor Details
-
TanhShrink
public TanhShrink()Constructor.
-
-
Method Details
-
forward
Description copied from interface:LayerForward propagation (or forward pass) through the layer.- Parameters:
x- the input tensor.- Returns:
- the output tensor.
-