Searched refs:_get_root_modules (Results 1 – 4 of 4) sorted by relevance
10 from torch.distributed.utils import _get_root_modules84 modules = _get_root_modules(list(module))131 updated_modules = _get_root_modules(list(inp_module))
10 from torch.distributed.utils import _get_root_modules123 (module,) if isinstance(module, nn.Module) else tuple(_get_root_modules(module))
361 def _get_root_modules(modules: List[nn.Module]) -> List[nn.Module]: function
466 def _get_root_modules(modules: Set[nn.Module]) -> Set[nn.Module]: function