[Feature Request] hydra.utils.get_object
method
#2139
Labels
enhancement
Enhanvement request
Milestone
hydra.utils.get_object
method
#2139
🚀 Feature Request
The
hydra.utils
module exposesget_class
andget_method
functions that can be used to look up callable objects:To resolve the given string, these methods use the same backend as
hydra.utils.instantiate
.The
get_class
andget_method
functions error if the given dotpath does not point to a callable:I think it would be useful to expose a
get_object
function inhydra.utils
that does not give an error in this case. This would allow users to leverage Hydra's dotpath-lookup mechanism to discover arbitrary objects (rather than just callable ones).The text was updated successfully, but these errors were encountered: