Skip to content

Commit c28575a

Browse files
sheng-zapaszke
authored andcommitted
Fix typo in documentation for autograd
1 parent c9db9c2 commit c28575a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/notes/autograd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ performed in the subgraphs, where all Variables didn't require gradients.
3030
>>> x = Variable(torch.randn(5, 5))
3131
>>> y = Variable(torch.randn(5, 5))
3232
>>> z = Variable(torch.randn(5, 5), requires_grad=True)
33-
>>> a = x + z
33+
>>> a = x + y
3434
>>> a.requires_grad
3535
False
3636
>>> b = a + z

0 commit comments

Comments
 (0)