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 13150d0 commit 60d2030Copy full SHA for 60d2030
beginner_source/examples_autograd/polynomial_autograd.py
@@ -49,7 +49,7 @@
49
# Now loss is a Tensor of shape (1,)
50
# loss.item() gets the scalar value held in the loss.
51
loss = (y_pred - y).pow(2).sum()
52
-
+
53
# Calculare initial loss, so we can report loss relative to it
54
if t==0:
55
initial_loss=loss.item()
0 commit comments