mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-02 19:21:31 +06:00
Fix typo in comment (#10156)
This commit is contained in:
parent
c969366870
commit
698c9e2dbd
@ -551,7 +551,7 @@ class TFGenerationMixin:
|
||||
# unfinished_sents is set to zero if eos in sentence
|
||||
unfinished_sents -= is_sents_unfinished_and_token_to_add_is_eos
|
||||
|
||||
# stop when there is a </s> in each sentence, or if we exceed the maximul length
|
||||
# stop when there is a </s> in each sentence, or if we exceed the maximum length
|
||||
if tf.math.reduce_max(unfinished_sents) == 0:
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user