Add load_from_checkpoint function to Loading docs (#4196)
* add autodoc load_from_checkpoint to docs * autofunction -> automethod Co-authored-by: Jeff Yang <ydcjeff@outlook.com> Co-authored-by: Jeff Yang <ydcjeff@outlook.com>
This commit is contained in:
parent
827a557269
commit
5c1eff351b
|
@ -176,6 +176,8 @@ you can restore the model like this
|
||||||
# uses in_dim=128, out_dim=10
|
# uses in_dim=128, out_dim=10
|
||||||
model = LitModel.load_from_checkpoint(PATH, in_dim=128, out_dim=10)
|
model = LitModel.load_from_checkpoint(PATH, in_dim=128, out_dim=10)
|
||||||
|
|
||||||
|
.. automethod:: pytorch_lightning.core.lightning.LightningModule.load_from_checkpoint
|
||||||
|
:noindex:
|
||||||
|
|
||||||
Restoring Training State
|
Restoring Training State
|
||||||
========================
|
========================
|
||||||
|
|
Loading…
Reference in New Issue