Update comments mentioning Python 2.

This commit is contained in:
Aymeric Augustin
2019-12-22 18:22:29 +01:00
parent 45841eaf7b
commit d6eaf4e6d2
11 changed files with 11 additions and 11 deletions

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):