Skip to content

Commit

Permalink
Use torchtext 0.3.1 (pytorch#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzw0301 authored and soumith committed Oct 14, 2018
1 parent 0c1fcc8 commit 323079f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions snli/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
iterations = 0
start = time.time()
best_dev_acc = -1
train_iter.repeat = False
header = ' Time Epoch Iteration Progress (%Epoch) Loss Dev/Loss Accuracy Dev/Accuracy'
dev_log_template = ' '.join('{:>6.0f},{:>5.0f},{:>9.0f},{:>5.0f}/{:<5.0f} {:>7.0f}%,{:>8.6f},{:8.6f},{:12.4f},{:12.4f}'.split(','))
log_template = ' '.join('{:>6.0f},{:>5.0f},{:>9.0f},{:>5.0f}/{:<5.0f} {:>7.0f}%,{:>8.6f},{},{:12.4f},{}'.split(','))
Expand Down Expand Up @@ -138,5 +137,3 @@
print(log_template.format(time.time()-start,
epoch, iterations, 1+batch_idx, len(train_iter),
100. * (1+batch_idx) / len(train_iter), loss.item(), ' '*8, n_correct/n_total*100, ' '*12))


0 comments on commit 323079f

Please sign in to comment.