Skip to content

Commit

Permalink
[Fix] Correctly record random seed in log (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiyang980713 committed May 19, 2023
1 parent 15298f3 commit 4bc2fe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mmengine/runner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2306,6 +2306,7 @@ def _log_env(self, env_cfg: dict) -> None:
runtime_env = OrderedDict()
runtime_env.update(env_cfg)
runtime_env.update(self._randomness_cfg)
runtime_env['seed'] = self._seed
runtime_env['Distributed launcher'] = self._launcher
runtime_env['Distributed training'] = self._distributed
runtime_env['GPU number'] = self._world_size
Expand Down

0 comments on commit 4bc2fe1

Please sign in to comment.