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
-
Consider the following example where the parameter
item
of the classTest
can either be an instance ofItem
orNone
.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 overrideConfig
somewhere else.Is there a better way to do this?
Thanks a lot!
Beta Was this translation helpful? Give feedback.
All reactions