Class GLUImpl#
- Defined in File activation.h 
Page Contents
Inheritance Relationships#
Base Type#
- public torch::nn::Cloneable< GLUImpl >(Template Class Cloneable)
Class Documentation#
- 
class GLUImpl : public torch::nn::Cloneable<GLUImpl>#
- Applies glu over a given input. - See https://pytorch.org/docs/main/nn.html#torch.nn.GLU to learn about the exact behavior of this module. - See the documentation for - torch::nn::GLUOptionsclass to learn what constructor arguments are supported for this module.- Example: - GLU model(GLUOptions(1)); - Public Functions - 
explicit GLUImpl(const GLUOptions &options_ = {})#
 - 
Tensor forward(const Tensor &input)#
 - Public Members - 
GLUOptions options#
- The options with which this - Modulewas constructed.
 
- 
explicit GLUImpl(const GLUOptions &options_ = {})#