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
3cfdefaa
"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "1ad7b0398c02a84fb3dd1f110a99d609e1df6726"
Unverified
Commit
3cfdefaa
authored
Jul 04, 2022
by
regisss
Committed by
GitHub
Jul 04, 2022
Browse files
Fix typo in error message in generation_utils (#18000)
parent
cf2578ae
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 @
3cfdefaa
...
...
@@ -1456,7 +1456,7 @@ class GenerationMixin:
raise
ValueError
(
"`max_length` needs to be a stopping_criteria for now."
)
if
num_beams
<=
1
:
raise
ValueError
(
"`num_beams` needs to be greater than 1 for constrained gener
t
ation."
)
raise
ValueError
(
"`num_beams` needs to be greater than 1 for constrained generation."
)
if
do_sample
:
raise
ValueError
(
"`do_sample` needs to be false for constrained generation."
)
...
...
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