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