Skip to content

Commit 56114a6

Browse files
authored
Update main.py
1 parent d7e452e commit 56114a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imagenet/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def train(train_loader, model, criterion, optimizer, epoch):
194194

195195
# measure accuracy and record loss
196196
prec1, prec5 = accuracy(output, target, topk=(1, 5))
197-
losses.update(loss.item() input.size(0))
197+
losses.update(loss.item(), input.size(0))
198198
top1.update(prec1[0], input.size(0))
199199
top5.update(prec5[0], input.size(0))
200200

0 commit comments

Comments
 (0)