def save_all_cfg(cfg, output_dir):
    'Save configs in the output directory.'
    path = os.path.join(output_dir, 'config.yaml')
    with open(path, 'w') as f:
        f.write(cfg.dump())
    print('Full config saved to {}'.format(path))
Save configs in the output directory.
def save_all_cfg(cfg, output_dir):
    
    path = os.path.join(output_dir, 'config.yaml')
    with open(path, 'w') as f:
        f.write(cfg.dump())
    print('Full config saved to {}'.format(path))