Get a yacs CfgNode object with default values.
(args)
| 255 | |
| 256 | |
| 257 | def get_config(args): |
| 258 | """Get a yacs CfgNode object with default values.""" |
| 259 | # Return a clone so that the defaults will not be altered |
| 260 | # This is for the "local variable" use pattern |
| 261 | config = _C.clone() |
| 262 | update_config(config, args) |
| 263 | |
| 264 | return config |
no test coverage detected