MnistModel#
Attributes
Methods
|
Add a child module to the current module. |
|
Apply |
Casts all floating point parameters and buffers to |
|
|
Return an iterator over module buffers. |
Return an iterator over immediate children modules. |
|
|
Compile this Module's forward using |
Move all model parameters and buffers to the CPU. |
|
|
Move all model parameters and buffers to the GPU. |
Casts all floating point parameters and buffers to |
|
Set the module in evaluation mode. |
|
Set the extra representation of the module. |
|
Casts all floating point parameters and buffers to |
|
Run a forward step on the network. |
|
|
Return the buffer given by |
Return any extra state to include in the module's state_dict. |
|
|
Return the parameter given by |
|
Return the submodule given by |
Casts all floating point parameters and buffers to |
|
|
Move all model parameters and buffers to the IPU. |
|
Copy parameters and buffers from |
Return an iterator over all modules in the network. |
|
|
Return an iterator over module buffers, yielding both the name of the buffer as well as the buffer itself. |
Return an iterator over immediate children modules, yielding both the name of the module as well as the module itself. |
|
|
Return an iterator over all modules in the network, yielding both the name of the module as well as the module itself. |
|
Return an iterator over module parameters, yielding both the name of the parameter as well as the parameter itself. |
|
Return an iterator over module parameters. |
Register a backward hook on the module. |
|
|
Add a buffer to the module. |
|
Register a forward hook on the module. |
|
Register a forward pre-hook on the module. |
Register a backward hook on the module. |
|
Register a backward pre-hook on the module. |
|
Register a post hook to be run after module's |
|
|
Alias for |
|
Add a parameter to the module. |
Register a pre-hook for the |
|
|
Change if autograd should record operations on parameters in this module. |
|
Set extra state contained in the loaded state_dict. |
|
Return a dictionary containing references to the whole state of the module. |
|
Move and/or cast the parameters and buffers. |
|
Move the parameters and buffers to the specified device without copying storage. |
|
Set the module in training mode. |
|
Casts all parameters and buffers to |
|
Move all model parameters and buffers to the XPU. |
|
Reset gradients of all model parameters. |