def run_model(cfg: DictConfig) -> None: print(cfg.pretty()) save_useful_info() run(cfg)
def run_model(cfg: DictConfig) -> None: os.makedirs('logs', exist_ok=True) print(cfg.pretty()) if cfg.general.log_code: save_useful_info() run(cfg)
def run_model(cfg: DictConfig) -> None: print(OmegaConf.to_yaml(cfg)) save_useful_info() run(cfg)