container
Dynamic sequential implementation (variable depth based on torch.nn.modules.container).
Classes
An |
- class DynamicModuleList
Bases:
DynamicModule,ModuleListAn
nn.ModuleListcontainer with dynamic hyperparams and variabledepth.Unlike _DynamicSequential, this module supports sorting/reordering of modules based on importance in addition to variable depth.