From c969366870393c61cf217acf44559bf11adab78f Mon Sep 17 00:00:00 2001 From: Manuel Romero Date: Sat, 13 Feb 2021 14:26:01 +0100 Subject: [PATCH] Fix typo in comments (#10157) --- src/transformers/generation_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transformers/generation_utils.py b/src/transformers/generation_utils.py index 0ce5df28b9..cf94d15e32 100644 --- a/src/transformers/generation_utils.py +++ b/src/transformers/generation_utils.py @@ -1245,7 +1245,7 @@ class GenerationMixin: outputs, model_kwargs, is_encoder_decoder=self.config.is_encoder_decoder ) - # stop when there is a in each sentence, or if we exceed the maximul length + # stop when there is a in each sentence, or if we exceed the maximum length if unfinished_sequences.max() == 0: break @@ -1451,7 +1451,7 @@ class GenerationMixin: sequence_lengths, unfinished_sequences, cur_len, next_tokens == eos_token_id ) - # stop when there is a in each sentence, or if we exceed the maximul length + # stop when there is a in each sentence, or if we exceed the maximum length if unfinished_sequences.max() == 0: break