Add suffixc to all "name"s in add_hydra_models_to_config_store
Problem
At the moment the names are something like "trainer". This is intuitive, but if you want to create a folder in you own project that is called "trainer" which contains multiple trainer configurations, then a yaml file in this folder will start with
defaults:
- trainer
accelerator: "cpu"
devices: 1
This will lead to a cyclic import, and an error.
Suggested Solve
Change all names in add_hydra_models_to_config_store to have a suffix like "_struct".
example:
config_store.store(name="trainer_struct", node=Trainer, group="trainer")
Then the yaml file would look like this:
defaults:
- trainer_struct
accelerator: "cpu"
devices: 1
and thus we don't have cyclic imports. It also makes it clear where the "default" comes from.