Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cleardusk committed May 4, 2019
1 parent dea30ce commit 5e2d051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def validate(val_loader, model, criterion, epoch):
output = model(input)

loss = criterion(output, target)
losses.append(loss)
losses.append(loss.item())

elapse = time.time() - end
loss = np.mean(losses)
Expand Down

0 comments on commit 5e2d051

Please sign in to comment.