Skip to content
This repository was archived by the owner on Aug 7, 2019. It is now read-only.

Commit cd4953d

Browse files
davidefioccosoumith
authored andcommitted
Typo fix and reformatting (pytorch#266)
1 parent 5620fdb commit cd4953d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beginner_source/nlp/pytorch_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@
272272
# In essence, we have broken the Tensor away from its past history
273273

274274
###############################################################
275-
# You can also stops autograd from tracking history on Tensors
276-
# with requires_grad=True by wrapping the code block in
275+
# You can also stop autograd from tracking history on Tensors
276+
# with ``.requires_grad``=True by wrapping the code block in
277277
# ``with torch.no_grad():``
278278
print(x.requires_grad)
279279
print((x ** 2).requires_grad)

0 commit comments

Comments
 (0)