Skip to content

Commit

Permalink
i love linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickus Timothee committed Sep 25, 2023
1 parent a98a274 commit 8d5b19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onmt/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d5b19e

Please sign in to comment.