From c0e30a84f0d802b2900a61c2d8191db72fa7cd52 Mon Sep 17 00:00:00 2001 From: Faeez Shaikh Date: Sat, 1 Apr 2023 16:37:41 -0500 Subject: [PATCH] Make code more readable. Replace idx --- core/test_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test_metrics.py b/core/test_metrics.py index ac29819..f75bf93 100644 --- a/core/test_metrics.py +++ b/core/test_metrics.py @@ -58,7 +58,7 @@ def test_task_dependent_ctr(): "stuff": 0, "labels": torch.arange(0, 6).repeat(batch_size, 1), } - for idx in range(num_examples) + for _ in range(num_examples) ] for task_idx in range(5):