diff --git a/src/lightning/pytorch/trainer/trainer.py b/src/lightning/pytorch/trainer/trainer.py index f2f59e396ab23..6f947160ba9cb 100644 --- a/src/lightning/pytorch/trainer/trainer.py +++ b/src/lightning/pytorch/trainer/trainer.py @@ -563,14 +563,16 @@ def fit( recommend using ``weights_only=True``. For more information, please refer to the `PyTorch Developer Notes on Serialization Semantics `_. + For more information about multiple dataloaders, see this :ref:`section `. + + :rtype: :py:obj:`None` + Raises: TypeError: If ``model`` is not :class:`~lightning.pytorch.core.LightningModule` for torch version less than 2.0.0 and if ``model`` is not :class:`~lightning.pytorch.core.LightningModule` or :class:`torch._dynamo.OptimizedModule` for torch versions greater than or equal to 2.0.0 . - For more information about multiple dataloaders, see this :ref:`section `. - """ model = _maybe_unwrap_optimized(model) self.strategy._lightning_module = model