support for using config file with _DEFAULTS_ via cli
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/271 - set `get_default_cfg = None` to opt-in this new feature. - support config with `_DEFAULTS_` when loading config file. Note that we don't check explicitly `"_DEFAULTS_" in config file` but check `runner.get_default_cfg == None`, this is because runner having `get_default_cfg` and config having `_DEFAULTS_` should be mutually exclusive, and `load_full_config_from_file` can raise proper error if `_DEFAULTS_` is missing. - we also need to save `_DEFAULTS_` in the diff config. Reviewed By: tglik Differential Revision: D36868581 fbshipit-source-id: e0e19309c3df5a85383ce1454b321a68d0868dc4
Showing
d2go/runner/api.py
0 → 100644
Please register or sign in to comment