You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Cannot use target kwarg when instantiating with hydra.utils.instantiate() #1669
hydra.utils.instantiate() seems to fail when trying to instantiate a class with a keyword argument called target.
It seems like the two keys _target_ and target are clashing, and this raises a TypeError: _call_target() got multiple values for argument 'target'.
Activity
omry commentedon Jun 11, 2021
Thanks for reporting, we will take a look.
Jasha10 commentedon Jun 11, 2021
Here is a minimal repro:
No error is raised if the 'target' parameter is renamed.