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
c7fd2899
Unverified
Commit
c7fd2899
authored
Sep 21, 2022
by
Nishant Balepur
Committed by
GitHub
Sep 21, 2022
Browse files
Fixed typo in generation_utils.py (#19145)
Changed "unfeasable" to "unfeasible"
parent
3c7b965b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/generation_utils.py
src/transformers/generation_utils.py
+1
-1
No files found.
src/transformers/generation_utils.py
View file @
c7fd2899
...
@@ -1275,7 +1275,7 @@ class GenerationMixin:
...
@@ -1275,7 +1275,7 @@ class GenerationMixin:
if
min_length
is
not
None
and
min_length
>
max_length
:
if
min_length
is
not
None
and
min_length
>
max_length
:
raise
ValueError
(
raise
ValueError
(
f
"Unfeas
a
ble length constraints: the minimum length (
{
min_length
}
) is larger than the maximum "
f
"Unfeas
i
ble length constraints: the minimum length (
{
min_length
}
) is larger than the maximum "
f
"length (
{
max_length
}
)"
f
"length (
{
max_length
}
)"
)
)
if
input_ids_seq_length
>=
max_length
:
if
input_ids_seq_length
>=
max_length
:
...
...
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