Skip to content

Commit 4a70101

Browse files
authored
Fix typo in "Introduction to Pytorch" tutorial (in NLP tutorial) (#1145)
* Fix typo in "Introduction to Pytorch" tutorial (in Pytorch for NLP tutorials) * Dummy commit, to restart CI * Revert dummy commit, to restart CI * Revert whitespace changes
1 parent ae17b15 commit 4a70101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beginner_source/nlp/pytorch_tutorial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@
274274

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

0 commit comments

Comments
 (0)