Module
Standard module for layers that take a single input (e.g., Linear, Conv1D). Defines the abstract forward function for single input.
Value parameters
- localParameters
-
the parameters (Variables) directly belonging to this module
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Inherited methods
Set the module to evaluation mode (and all submodules recursively).
Set the module to evaluation mode (and all submodules recursively).
Attributes
- Inherited from:
- BaseModule
Return the gradients of all parameters.
Return all trainable parameters, including those from submodules.
Return all trainable parameters, including those from submodules.
Attributes
- Inherited from:
- BaseModule
Replace the current parameters with new ones. Useful for weight updates, loading saved models, etc.
Replace the current parameters with new ones. Useful for weight updates, loading saved models, etc.
Value parameters
- newParams
-
The new parameter list to assign
Attributes
- Inherited from:
- BaseModule
Set the module to training mode (and all submodules recursively).
Set the module to training mode (and all submodules recursively).
Attributes
- Inherited from:
- BaseModule
Zero out all gradients (in-place).
Inherited fields
Flag to control training or evaluation behavior.
Automatically detect submodules (other BaseModules) within this module.
Automatically detect submodules (other BaseModules) within this module.
Attributes
- Inherited from:
- BaseModule