(output_dif: str, full_config)
| 160 | |
| 161 | |
| 162 | def _save_run_metadata(output_dif: str, full_config) -> None: |
| 163 | date = str(datetime.datetime.now().strftime('%m%d%H')) |
| 164 | with open(os.path.join(output_dif, 'gitdiff.patch'), 'w', encoding='utf-8') as f: |
| 165 | f.write('') |
| 166 | config_name = f'config_{date}.yaml' |
| 167 | |
| 168 | with open(os.path.join(output_dif, config_name), 'w', encoding='utf-8') as f: |
| 169 | f.write(OmegaConf.to_yaml(full_config)) |
| 170 | |
| 171 | |
| 172 | def _attach_env_runtime_to_config(full_config, env_cfg) -> None: |