Get a yacs CfgNode object with default values.
(args)
| 278 | |
| 279 | |
| 280 | def get_config(args): |
| 281 | """Get a yacs CfgNode object with default values.""" |
| 282 | # Return a clone so that the defaults will not be altered |
| 283 | # This is for the "local variable" use pattern |
| 284 | config = _C.clone() |
| 285 | update_config(config, args) |
| 286 | |
| 287 | return config |
no test coverage detected