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
Thank you for reporting! I haven't tried to reproduce it yet, but for certain this would be a bug.
Independent from the bug, for a case like an optimizer, instead of an optimizer_init: dict parameter, it is recommended to use dependency injection as explained in callable-type.
I modified my code to work with this approach now but it's only a solution for the optimizer init. The problem with the scheduler init is that they all receive a different number and different type of positional args - at least I couldn't get it to work. So I'm sticking with the dict for the schedulers since that's something I will probably not be tuning in the near future. But I guess a concatenation function for dictionaries would be great, too.
🐛 Bug report
Related to my other issue (#387), when passing the respective nested dict key on the CLI makes the param be written to the wrong level unfortunately.
To reproduce
Output:
The new learning rate is not a child of the nested inner
init_args
but is on the same level as it.Expected behavior
The new learning rate should be a child of
init_args
and overwrite the one of the previous config:Environment
jsonargparse version 4.24.1
The text was updated successfully, but these errors were encountered: