Skip to content

Commit 1c08b0a

Browse files
committed
Address review comments
1 parent 1874ef3 commit 1c08b0a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/source-pytorch/common/checkpointing_basic.rst

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ If you don't just want to load weights, but instead restore the full training, d
213213

214214
.. warning::
215215

216-
The argument `resume_from_checkpoint` has been deprecated in versions of PyTorch Lightning >= 1.0.0.
216+
The parameter `resume_from_checkpoint` has been deprecated in recent versions of PyTorch Lightning.
217217
Please use the `ckpt_path` argument in the `fit()` method instead.
218218

219219
Incorrect (deprecated) usage:
@@ -232,3 +232,15 @@ Correct usage:
232232
233233
# automatically restores model, epoch, step, LR schedulers, etc...
234234
trainer.fit(model, ckpt_path="path/to/your/checkpoint.ckpt")
235+
236+
.. warning::
237+
238+
The argument `resume_from_checkpoint` has been deprecated in versions of PyTorch Lightning >= 1.0.0.
239+
To resume training from a checkpoint, use the `ckpt_path` argument in the `fit()` method instead.
240+
241+
Incorrect (deprecated) usage:
242+
243+
.. code-block:: python
244+
245+
trainer = Trainer(resume_from_checkpoint="path/to/your/checkpoint.ckpt")
246+
trainer.fit(model)

0 commit comments

Comments
 (0)