Unverified Commit 698c9e2d authored by Manuel Romero's avatar Manuel Romero Committed by GitHub
Browse files

Fix typo in comment (#10156)

parent c9693668
...@@ -551,7 +551,7 @@ class TFGenerationMixin: ...@@ -551,7 +551,7 @@ class TFGenerationMixin:
# unfinished_sents is set to zero if eos in sentence # unfinished_sents is set to zero if eos in sentence
unfinished_sents -= is_sents_unfinished_and_token_to_add_is_eos 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: if tf.math.reduce_max(unfinished_sents) == 0:
break break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment