mmengine.dist.init_dist¶ mmengine.dist.init_dist(launcher, backend='nccl', init_backend='torch', **kwargs)[源代码]¶ Initialize distributed environment. 参数: launcher (str) – Way to launcher multi processes. Supported launchers are ‘pytorch’, ‘mpi’ and ‘slurm’. backend (str) – Communication Backends. Supported backends are ‘nccl’, ‘gloo’ and ‘mpi’. Defaults to ‘nccl’. **kwargs – keyword arguments are passed to init_process_group. 返回类型: None