Shortcuts

ModuleList

class mmengine.model.ModuleList(modules=None, init_cfg=None)[源代码]

ModuleList in openmmlab.

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

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

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