Skip to content

Commit

Permalink
[Fix] Ensure from_cfg of Runner have the same defaults values as its …
Browse files Browse the repository at this point in the history
…__init__ (#1368)
  • Loading branch information
YinAoXiong authored Sep 27, 2023
1 parent e9e08db commit c863e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmengine/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def from_cfg(cls, cfg: ConfigType) -> 'Runner':
load_from=cfg.get('load_from'),
resume=cfg.get('resume', False),
launcher=cfg.get('launcher', 'none'),
env_cfg=cfg.get('env_cfg'), # type: ignore
env_cfg=cfg.get('env_cfg', dict(dist_cfg=dict(backend='nccl'))),
log_processor=cfg.get('log_processor'),
log_level=cfg.get('log_level', 'INFO'),
visualizer=cfg.get('visualizer'),
Expand Down

0 comments on commit c863e8b

Please sign in to comment.