Skip to content

Commit 323079f

Browse files
nzw0301soumith
authored andcommitted
Use torchtext 0.3.1 (pytorch#423)
1 parent 0c1fcc8 commit 323079f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

snli/train.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
iterations = 0
5959
start = time.time()
6060
best_dev_acc = -1
61-
train_iter.repeat = False
6261
header = ' Time Epoch Iteration Progress (%Epoch) Loss Dev/Loss Accuracy Dev/Accuracy'
6362
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(','))
6463
log_template = ' '.join('{:>6.0f},{:>5.0f},{:>9.0f},{:>5.0f}/{:<5.0f} {:>7.0f}%,{:>8.6f},{},{:12.4f},{}'.split(','))
@@ -138,5 +137,3 @@
138137
print(log_template.format(time.time()-start,
139138
epoch, iterations, 1+batch_idx, len(train_iter),
140139
100. * (1+batch_idx) / len(train_iter), loss.item(), ' '*8, n_correct/n_total*100, ' '*12))
141-
142-

0 commit comments

Comments
 (0)