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
@@ -341,7 +341,7 @@ def train(args, train_dataset, model, tokenizer):
tr_loss, logging_loss = 0.0, 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):