You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dataclass objects are assumed to be Structured Configs and are converted to a type safe DictConfig.
You can access the underlying type with OmegaConf.get_type(cfg), and in principle you can instantiate the dataclass again from the data in the config.
This is not implemented now and has a large surface area. I am open to a pull request to add this functionality.
Hi @omry! First of all, thanks for the work you've put into this library!
I was wondering if there is any way to set a
DictConfig
attribute to adataclass
, without it getting converted into aDictConfig
All of these print the same output and convert
Foo()
into{bar: 1}
My use case is wanting to parse some of the DictConfig attributes into dataclasses, while keeping others as DictConfigs.
Thank you!
The text was updated successfully, but these errors were encountered: