Skip to content

Commit

Permalink
Docs: Fix broken code syntax in autograd.rst (#69362)
Browse files Browse the repository at this point in the history
Summary:
The backticks around `nn.Parameters` were not rendered correctly because the word was enclosed in an italics block.
Spotted the issue on https://pytorch.org/docs/stable/notes/autograd.html#locally-disable-grad-doc.

Pull Request resolved: #69362

Reviewed By: zou3519

Differential Revision: D32924093

Pulled By: albanD

fbshipit-source-id: 5a310ac3f3d13a5116f7aa911817b9452eee711d
  • Loading branch information
rodrigobdz authored and desertfire committed Dec 14, 2021
1 parent 8ca1674 commit 807ad67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/notes/autograd.rst
Expand Up @@ -108,7 +108,7 @@ Setting ``requires_grad``
^^^^^^^^^^^^^^^^^^^^^^^^^

:attr:`requires_grad` is a flag, defaulting to false *unless wrapped
in a ``nn.Parameter``*, that allows for fine-grained exclusion of
in a* ``nn.Parameter``, that allows for fine-grained exclusion of
subgraphs from gradient computation. It takes effect in both the
forward and backward passes:

Expand Down

0 comments on commit 807ad67

Please sign in to comment.