Skip to content

Commit 16392a7

Browse files
authored
Update links for zero_grad to PyTorch docs (#8618)
1 parent a787097 commit 16392a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/guides/speed.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ Set Grads to None
450450
In order to modestly improve performance, you can override :meth:`~pytorch_lightning.core.lightning.LightningModule.optimizer_zero_grad`.
451451

452452
For a more detailed explanation of pros / cons of this technique,
453-
read `this <https://pytorch.org/docs/master/optim.html#torch.optim.Optimizer.zero_grad>`_ documentation by the PyTorch team.
453+
read the documentation for :meth:`~torch.optim.Optimizer.zero_grad` by the PyTorch team.
454454

455455
.. testcode::
456456

0 commit comments

Comments
 (0)