megengine.module.GELU.named_modules

GELU.named_modules(prefix=None, **kwargs)

Returns an iterable of key-module pairs for all the modules within this module, including itself, where ‘key’ is the dotted path from this module to the submodules.

参数

prefix (Optional[str]) – prefix prepended to the path.

返回类型

Iterable[Tuple[str, Module]]