Automatic casting for hydra.utils.initialize
based on type hints
#2920
jonasteuwen
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, if we have a class such as:
We can have the following YAML config
Now currently, that will be parsed as a
ListConfig
of alist[int, int]
, rather than atuple[float, float]
. Would there be any disadvantages to allowinghydra.utils.initialize
to read the function type hints and automatically cast them (given a predefined class)?Another way to do this would also be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions