Skip to content

Commit 9745eab

Browse files
authored
training loss print statement edited
changed running_loss to running_loss/len(trainloader)
1 parent 0acb97a commit 9745eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intro-to-pytorch/Part 4 - Fashion-MNIST (Solution).ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
" \n",
175175
" running_loss += loss.item()\n",
176176
" else:\n",
177-
" print(f\"Training loss: {running_loss}\")"
177+
" print(f\"Training loss: {running_loss/len(trainloader)}\")"
178178
]
179179
},
180180
{

0 commit comments

Comments
 (0)