mit-ll-responsible-ai / hydra-zen

Create powerful Hydra applications without the yaml files and boilerplate code.
https://mit-ll-responsible-ai.github.io/hydra-zen/
MIT License
317 stars 14 forks source link

autoconfig support for defaultdict #681

Closed rsokl closed 4 months ago

rsokl commented 4 months ago
>>> from collections import defaultdict
>>> from hydra_zen import instantiate, just
>>> x = defaultdict(list)
>>> x.update({1: [1+2j,2]})
>>> instantiate(just(x))
defaultdict(list, {1: [(1+2j), 2]})