diff --git a/docs/source/introduction_guide.rst b/docs/source/introduction_guide.rst index 56dc6b7efe..6d1f969b7f 100644 --- a/docs/source/introduction_guide.rst +++ b/docs/source/introduction_guide.rst @@ -297,7 +297,7 @@ When your models need to know about the data, it's best to process the data befo An alternative to using a DataModule is to defer initialization of the models modules to the `setup` method of your LightningModule as follows: -.. code-block:: python +.. testcode:: class LitMNIST(LightningModule):