mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Enhancement] Do not print config if it is empty (#1028)
This commit is contained in:
parent
26a7a92a13
commit
b3b1e11b4e
@ -2290,7 +2290,9 @@ class Runner:
|
||||
env_info + '\n'
|
||||
'\nRuntime environment:' + runtime_env_info + '\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:
|
||||
"""Use `torch.compile` to optimize model/wrapped_model."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user