Skip to content

Commit 1060696

Browse files
committed
fixed function def report. Now the loss values are correctly updated
1 parent 681558c commit 1060696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/guide/basic_training_loops.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
"\n",
356356
"# Define a training loop\n",
357357
"def report(model, loss):\n",
358-
" return f\"W = {model.w.numpy():1.2f}, b = {model.b.numpy():1.2f}, loss={current_loss:2.5f}\"\n",
358+
" return f\"W = {model.w.numpy():1.2f}, b = {model.b.numpy():1.2f}, loss={loss:2.5f}\"\n",
359359
"\n",
360360
"\n",
361361
"def training_loop(model, x, y):\n",

0 commit comments

Comments
 (0)