Shortcuts

ModuleList

class mmengine.model.ModuleList(modules=None, init_cfg=None)[source]

ModuleList in openmmlab.

Ensures that all modules in ModuleList have a different initialization strategy than the outer model

Parameters:
  • modules (iterable, optional) – An iterable of modules to add.

  • init_cfg (dict, optional) – Initialization config dict.