From 8d5b19e70d7e407a291ab733019fce0e5977fe11 Mon Sep 17 00:00:00 2001 From: Mickus Timothee Date: Mon, 25 Sep 2023 11:24:01 +0300 Subject: [PATCH] i love linting --- onmt/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onmt/trainer.py b/onmt/trainer.py index 8d210df3..7a3dc79a 100644 --- a/onmt/trainer.py +++ b/onmt/trainer.py @@ -450,7 +450,7 @@ def validate(self, valid_iter, moving_average=None, task=None): for p in self.model.parameters(): if hasattr(p, 'has_grad'): p.has_grad = False - + return stats def _gradient_accumulation_over_lang_pairs(