Skip to content

Commit e0470cc

Browse files
authored
Update resume_from_checkpoint docs (#9952)
1 parent 0684e52 commit e0470cc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pytorch_lightning/trainer/connectors/checkpoint_connector.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ def resume_start(self) -> None:
5959
1. from HPC weights if found
6060
2. from `resume_from_checkpoint` file if provided
6161
3. don't restore
62-
63-
Raises:
64-
FileNotFoundError: If the path to the checkpoint file is provided but the file does not exist.
6562
"""
6663
self.resume_checkpoint_path = self.hpc_resume_path or self.resume_checkpoint_path
6764
checkpoint_path = self.resume_checkpoint_path

pytorch_lightning/trainer/trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def __init__(
357357
you can set ``replace_sampler_ddp=False`` and add your own distributed sampler.
358358
359359
resume_from_checkpoint: Path/URL of the checkpoint from which training is resumed. If there is
360-
no checkpoint file at the path, start from scratch. If resuming from mid-epoch checkpoint,
360+
no checkpoint file at the path, an exception is raised. If resuming from mid-epoch checkpoint,
361361
training will start from the beginning of the next epoch.
362362
363363
strategy: Supports different training strategies with aliases

0 commit comments

Comments
 (0)