[Feature Request] instantiate
support for ListConfig at top level
#1950
Labels
Milestone
instantiate
support for ListConfig at top level
#1950
The below text is copied directly from a post by a user of the internal Meta Hydra users group:
It seems that Hydra doesn't support recursive instantiation for list objects yet. For example, I would expect the following code to work, but it's raising an InstantiationException: Top level config has to be OmegaConf DictConfig, plain dict, or a Structured Config class or instance.
As another example, we often instantiate a list of callbacks and pass them to a trainer. Although the same thing can be done with a list comprehension, you can probably imagine its usefulness when composed with other structures. This looks like a simple and intuitive feature, so I'm curious if we plan to support it, if it hasn't been done already.
The text was updated successfully, but these errors were encountered: