Add missing highlighting for Python snippets (#8411)

Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com>
This commit is contained in:
Aslı Sabancı 2021-07-27 04:22:05 -07:00 committed by GitHub
parent d90cb7fceb
commit 4605e8a4a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -335,7 +335,7 @@ auto_scale_batch_size
Automatically tries to find the largest batch size that fits into memory,
before any training.
.. code-block::
.. code-block:: python
# default used by the Trainer (no scaling of batch size)
trainer = Trainer(auto_scale_batch_size=None)
@ -1353,7 +1353,6 @@ By setting to False, you have to add your own distributed sampler:
.. code-block:: python
# in your LightningModule or LightningDataModule
def train_dataloader(self):
# default used by the Trainer
@ -1575,7 +1574,7 @@ Can specify as float or int.
trainer = Trainer(val_check_interval=1000)
.. code-block::
.. code-block:: python
# Here is the computation to estimate the total number of batches seen within an epoch.