We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9db9c2 commit c28575aCopy full SHA for c28575a
docs/source/notes/autograd.rst
@@ -30,7 +30,7 @@ performed in the subgraphs, where all Variables didn't require gradients.
30
>>> x = Variable(torch.randn(5, 5))
31
>>> y = Variable(torch.randn(5, 5))
32
>>> z = Variable(torch.randn(5, 5), requires_grad=True)
33
- >>> a = x + z
+ >>> a = x + y
34
>>> a.requires_grad
35
False
36
>>> b = a + z
0 commit comments