Update comments mentioning Python 2.

This commit is contained in:
Aymeric Augustin committed 2019-12-22 18:38:56 +01:00
1 parent 45841eaf7b
commit d6eaf4e6d2
11 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -164,7 +164,7 @@ def train(args, train_dataset, model, tokenizer, criterion):
best_f1, n_no_improve = 0, 0
model.zero_grad()
train_iterator = trange(int(args.num_train_epochs), desc="Epoch", disable=args.local_rank not in [-1, 0])
set_seed(args) # Added here for reproductibility (even between python 2 and 3)
set_seed(args) # Added here for reproductibility
for _ in train_iterator:
epoch_iterator = tqdm(train_dataloader, desc="Iteration", disable=args.local_rank not in [-1, 0])
for step, batch in enumerate(epoch_iterator):