Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 720d96a

Browse files
davidefioccochsasank
authored andcommitted
Typo fixing and formatting change (#242)
Typo fixing and formatting change in autograd tutorial
1 parent 4667958 commit 720d96a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

beginner_source/blitz/autograd_tutorial.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@
127127
print(x.grad)
128128

129129
###############################################################
130-
# You can also stops autograd from tracking history on Tensors
131-
# with requires_grad=True by wrapping the code block in
130+
# You can also stop autograd from tracking history on Tensors
131+
# with ``.requires_grad``=True by wrapping the code block in
132132
# ``with torch.no_grad():``
133133
print(x.requires_grad)
134134
print((x ** 2).requires_grad)

0 commit comments

Comments
 (0)