mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Update args, kwargs doc for load_from_checkpoint() (#1839)
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user