megengine.traced_module.TracedModule.named_children

TracedModule.named_children(**kwargs)

Returns an iterable of key-submodule pairs for all the submodules that are direct attributes of this module, where ‘key’ is the attribute name of submodules.

返回类型

Iterable[Tuple[str, Module]]