Skip to content

Commit c71970c

Browse files
rasbtlantiga
authored andcommitted
docs: update debugging_basic.rst with trainer var (#18856)
(cherry picked from commit 1ac49b1)
1 parent 038e72f commit c71970c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source-pytorch/debug/debugging_basic.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ The :paramref:`~lightning.pytorch.trainer.trainer.Trainer.fast_dev_run` argument
5151

5252
.. code:: python
5353
54-
Trainer(fast_dev_run=True)
54+
trainer = Trainer(fast_dev_run=True)
5555
5656
To change how many batches to use, change the argument to an integer. Here we run 7 batches of each:
5757

5858
.. code:: python
5959
60-
Trainer(fast_dev_run=7)
60+
trainer = Trainer(fast_dev_run=7)
6161
6262
6363
.. note::
@@ -142,7 +142,7 @@ To turn off the autosummary use:
142142

143143
.. code:: python
144144
145-
Trainer(enable_model_summary=False)
145+
trainer = Trainer(enable_model_summary=False)
146146
147147
----
148148

0 commit comments

Comments
 (0)