test runner for experiment.py

Summary: Add simple interactive testrunner for experiment.py

Reviewed By: shapovalov

Differential Revision: D35316221

fbshipit-source-id: d424bcba632eef89eefb56e18e536edb58ec6f85
This commit is contained in:
Jeremy Reizenstein
2022-05-26 05:33:03 -07:00
committed by Facebook GitHub Bot
parent fbd3c679ac
commit c31bf85a23
5 changed files with 453 additions and 4 deletions

View File

@@ -705,8 +705,9 @@ class ExperimentConfig:
)
cs = hydra.core.config_store.ConfigStore.instance()
cs.store(name="default_config", node=ExperimentConfig)
if __name__ == "__main__":
cs = hydra.core.config_store.ConfigStore.instance()
cs.store(name="default_config", node=ExperimentConfig)
@hydra.main(config_path="./configs/", config_name="default_config")