Open ammirato opened 1 year ago
This seems a bit tricky.... In such a case it may be easier to use a custom wrapper that takes as input a dictionary whose keys are strings, and transforms it into a dictionary whose keys are types. Then apply this wrapper on paths
-- hopefully that would work.
makes sense! I can see this working. instantiate
is great, but I was hoping I would be able to use it to construct arbitrary python objects. Is that in the roadmap for hydra
(or do you know of a third-party extension working on it)?
I'm trying write a yaml file to build a python object, which has an arg which is a dict where the keys are types and the values are anything.
Here's an example.
The class (in
toy.py
)The yaml (in
./config/toy.yaml
) which does not do what I wantA test/example:
Result of the test is
How can I get the hydra obj to match?