Skip to content

Commit c4b1d3d

Browse files
typo
My first 15 min. with pytorch, not sure :)
1 parent cf17aa8 commit c4b1d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autograd/two_layer_net_autograd.py

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

5858
# Use autograd to compute the backward pass. This call will compute the
5959
# gradient of loss with respect to all Variables with requires_grad=True.
60-
# After this call w1.data and w2.data will be Variables holding the gradient
60+
# After this call w1.grad and w2.grad will be Variables holding the gradient
6161
# of the loss with respect to w1 and w2 respectively.
6262
loss.backward()
6363

0 commit comments

Comments
 (0)