Skip to content

Commit

Permalink
args should come after the last positional argument (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukw777 authored May 13, 2020
1 parent fddd618 commit e961f7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pytorch_lightning/core/lightning.py
Original file line number Diff line number Diff line change
Expand Up @@ -1439,11 +1439,12 @@ def load_from_metrics(cls, weights_path, tags_csv, map_location=None):
def load_from_checkpoint(
cls,
checkpoint_path: str,
*args,
map_location: Optional[Union[Dict[str, str], str, torch.device, int, Callable]] = None,
hparams_file: Optional[str] = None,
tags_csv: Optional[str] = None, # backward compatible, todo: remove in v0.9.0
hparam_overrides: Optional[Dict] = None,
*args, **kwargs
**kwargs
) -> 'LightningModule':
r"""
Primary way of loading a model from a checkpoint. When Lightning saves a checkpoint
Expand Down

0 comments on commit e961f7e

Please sign in to comment.