Skip to content

Commit 7b37ceb

Browse files
authored
Merge pull request udacity#46 from ashwindasr/ashwindasr-patch-1
training loss print statement edited
2 parents 2ab445a + 9745eab commit 7b37ceb

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)