Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jun 11, 2021
1 parent 66fe635 commit e0e98e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pytorch_lightning/trainer/connectors/checkpoint_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ def restore_datamodule(self) -> None:

def restore_model(self) -> None:
"""
Restores a model's state from a PyTorch Lightning checkpoint. Hooks are called first, the weights get
restored last.
Restores a model's weights from a PyTorch Lightning checkpoint. Hooks are called first go give
the LightningModule a chance to modify the contents, then finally the model gets updated with
the loaded weights.
"""
if not self._loaded_checkpoint:
return
Expand Down

0 comments on commit e0e98e0

Please sign in to comment.