azula.nn.utils¶
Miscellaneous neural network helpers.
Classes¶
Creates a context in which weight initialization is skipped. |
Functions¶
Moves a module to a device and offloads it to CPU upon exit. |
Descriptions¶
- class azula.nn.utils.skip_init¶
Creates a context in which weight initialization is skipped.
Example
>>> with skip_init(): ... layer = nn.Linear(3, 5)