Skip to content

Commit d610b4a

Browse files
committed
remove useless line
1 parent 3b60784 commit d610b4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mnist/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ def test():
103103
pred = output.data.max(1)[1] # get the index of the max log-probability
104104
correct += pred.eq(target.data).cpu().sum()
105105

106-
test_loss = test_loss # sum of loss function over all data points
107106
test_loss /= len(test_loader.dataset)
108107
print('\nTest set: Average loss: {:.4f}, Accuracy: {}/{} ({:.0f}%)\n'.format(
109108
test_loss, correct, len(test_loader.dataset),

0 commit comments

Comments
 (0)