Get a yacs CfgNode object with default values for my_project.
()
| 40 | |
| 41 | |
| 42 | def get_cfg_defaults(): |
| 43 | """Get a yacs CfgNode object with default values for my_project.""" |
| 44 | # Return a clone so that the defaults will not be altered |
| 45 | # This is for the "local variable" use pattern |
| 46 | return cfg.clone() |
| 47 | |
| 48 | def update_cfg(cfg, cfg_file): |
| 49 | cfg.merge_from_file(cfg_file) |