Package smile.deep.activation
Class Sigmoid
java.lang.Object
smile.deep.activation.ActivationFunction
smile.deep.activation.Sigmoid
- All Implemented Interfaces:
Serializable
,Function<Tensor,
,Tensor> Layer
Sigmoid activation function.
- See Also:
-
Constructor Details
-
Sigmoid
public Sigmoid(boolean inplace) Constructor.- Parameters:
inplace
- true if the operation executes in-place.
-
-
Method Details
-
forward
Description copied from interface:Layer
Forward propagation (or forward pass) through the layer.- Parameters:
input
- the input tensor.- Returns:
- the output tensor.
-