Skip to content
Snippets Groups Projects
Unverified Commit b3b1e11b authored by Zaida Zhou's avatar Zaida Zhou Committed by GitHub
Browse files

[Enhancement] Do not print config if it is empty (#1028)

parent 26a7a92a
No related branches found
No related tags found
No related merge requests found
...@@ -2290,7 +2290,9 @@ class Runner: ...@@ -2290,7 +2290,9 @@ class Runner:
env_info + '\n' env_info + '\n'
'\nRuntime environment:' + runtime_env_info + '\n' + '\nRuntime environment:' + runtime_env_info + '\n' +
dash_line + '\n') dash_line + '\n')
self.logger.info(f'Config:\n{self.cfg.pretty_text}')
if self.cfg._cfg_dict:
self.logger.info(f'Config:\n{self.cfg.pretty_text}')
def _maybe_compile(self, target: str) -> None: def _maybe_compile(self, target: str) -> None:
"""Use `torch.compile` to optimize model/wrapped_model.""" """Use `torch.compile` to optimize model/wrapped_model."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment