Fix typo and code rendering in docs (#5940)
This commit is contained in:
parent
f655f974eb
commit
1554a59ef7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue