[Bug] Cannot use target
kwarg when instantiating with hydra.utils.instantiate()
#1669
Closed
2 tasks done
馃悰 Bug
Description
hydra.utils.instantiate()
seems to fail when trying to instantiate a class with a keyword argument calledtarget
.It seems like the two keys
_target_
andtarget
are clashing, and this raises aTypeError: _call_target() got multiple values for argument 'target'
.Checklist
To reproduce
Minimal Code/Config snippet to reproduce
Available as a Colab Gists:
https://colab.research.google.com/gist/fabiocarrara/6bf5abaecf3f84c1e83239f8af3b8219/hydra_instantiate_bug.ipynb
Stack trace/error message
Expected Behavior
target
should be a permitted key name for callable/constructor's kwargs.System information
The text was updated successfully, but these errors were encountered: