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 a500ce7 commit 651e901Copy full SHA for 651e901
tutorials/00 - PyTorch Basics/main.py
@@ -72,6 +72,7 @@
72
# linear.bias.data.sub_(0.01 * linear.bias.grad.data)
73
74
# Print out the loss after optimization.
75
+pred = linear(x)
76
loss = criterion(pred, y)
77
print('loss after 1 step optimization: ', loss.data[0])
78
0 commit comments