Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
698c9e2d
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "5764efe544de909e93bfde16489b5a0975fce1c2"
Unverified
Commit
698c9e2d
authored
Feb 13, 2021
by
Manuel Romero
Committed by
GitHub
Feb 13, 2021
Browse files
Fix typo in comment (#10156)
parent
c9693668
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/generation_tf_utils.py
src/transformers/generation_tf_utils.py
+1
-1
No files found.
src/transformers/generation_tf_utils.py
View file @
698c9e2d
...
...
@@ -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 maximu
l
length
# stop when there is a </s> in each sentence, or if we exceed the maximu
m
length
if
tf
.
math
.
reduce_max
(
unfinished_sents
)
==
0
:
break
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment