Update args, kwargs doc for load_from_checkpoint() (#1839)

This commit is contained in:
Peter Yu
2020-05-14 15:43:47 -04:00
committed by GitHub
parent 236c1378f9
commit a6f6edd07d
+2 -1
View File
@@ -1486,7 +1486,7 @@ class LightningModule(ABC, DeviceDtypeModuleMixin, GradInformation, ModelIO, Mod
Args:
checkpoint_path: Path to checkpoint.
model_args: Any keyword args needed to init the model.
args: Any positional args needed to init the model.
map_location:
If your checkpoint saved a GPU model and you now load on CPUs
or a different number of GPUs, use this to map to the new setup.
@@ -1524,6 +1524,7 @@ class LightningModule(ABC, DeviceDtypeModuleMixin, GradInformation, ModelIO, Mod
Use this method to pass in a .csv file with the hparams you'd like to use.
hparam_overrides: A dictionary with keys to override in the hparams
kwargs: Any keyword args needed to init the model.
Return:
:class:`LightningModule` with loaded weights and hyperparameters (if available).