Skip to content

Commit

Permalink
also update varargs passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jun 2, 2020
1 parent 9fca7a8 commit 3d7a30d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1762,6 +1762,7 @@ def _collect_init_args(frame, path_args: list) -> list:

# only collect variables that appear in the signature
local_args = {k: local_vars[k] for k in init_parameters.keys()}
local_args.update(local_args.get(varargs_identifier, {}))
local_args.update(local_args.get(kwargs_identifier, {}))
local_args = {k: v for k, v in local_args.items() if k not in exclude_argnames}

Expand Down

0 comments on commit 3d7a30d

Please sign in to comment.