Replies: 1 comment 1 reply
-
|
Could something like this work? from hydra_zen import builds, instantiate
cfg = builds(type(None))
n = instantiate(cfg)Right now |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following example where the parameter
itemof the classTestcan either be an instance ofItemorNone.I would like to create a config group in the package 'test/item' which sets the item to
None. Unfortunately, the line item_store(None, name='none') doesn't set anything. Relocating in the global package seems to work, i.e.For some reason hydra_defaults=['_self_'] is necessary in
make_config.I don't like the inheritance from
Config. I fear that might lead to problems if I inherit and overrideConfigsomewhere else.Is there a better way to do this?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions