From 94ba237864e1315cce7d2984b492b58299271e98 Mon Sep 17 00:00:00 2001 From: Bartosz Kuncer Date: Thu, 7 Apr 2022 18:37:12 +0200 Subject: [PATCH] Fix ETA for eval_validation --- scripts/question_answering/run_squad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/question_answering/run_squad.py b/scripts/question_answering/run_squad.py index 521ee15a47..b0b6da70e4 100644 --- a/scripts/question_answering/run_squad.py +++ b/scripts/question_answering/run_squad.py @@ -864,7 +864,7 @@ def eval_validation(ckpt_name, best_eval): all_results = [] epoch_tic = time.time() tic = time.time() - epoch_size = len(dev_features) + epoch_size = len(dev_all_chunk_features) total_num = 0 log_num = 0 for batch_idx, dev_batch in enumerate(grouper(dev_dataloader, len(ctx_l))):