Fix typo and code rendering in docs (#5940)

This commit is contained in:
Alessia Marcolini 2021-02-17 11:33:15 +01:00 committed by GitHub
parent f655f974eb
commit 1554a59ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1313,7 +1313,7 @@ class LightningModule(
By default, Lightning calls ``step()`` and ``zero_grad()`` as shown in the example
once per optimizer.
.. tip:: With `Trainer(enable_pl_optimizer=True)`, you can user `optimizer.step()` directly
.. tip:: With ``Trainer(enable_pl_optimizer=True)``, you can use ``optimizer.step()`` directly
and it will handle zero_grad, accumulated gradients, AMP, TPU and more automatically for you.
Warning: