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
569b679a
Unverified
Commit
569b679a
authored
Jul 01, 2022
by
Yih-Dar
Committed by
GitHub
Jul 01, 2022
Browse files
Update expected values in CodeGen tests (#17888)
Co-authored-by:
ydshieh
<
ydshieh@users.noreply.github.com
>
parent
cb425024
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/models/codegen/test_modeling_codegen.py
tests/models/codegen/test_modeling_codegen.py
+1
-1
No files found.
tests/models/codegen/test_modeling_codegen.py
View file @
569b679a
...
@@ -503,7 +503,7 @@ class CodeGenModelLanguageGenerationTest(unittest.TestCase):
...
@@ -503,7 +503,7 @@ class CodeGenModelLanguageGenerationTest(unittest.TestCase):
output_seq_tt_strs
=
tokenizer
.
batch_decode
(
output_seq_tt
,
skip_special_tokens
=
True
)
output_seq_tt_strs
=
tokenizer
.
batch_decode
(
output_seq_tt
,
skip_special_tokens
=
True
)
if
torch_device
==
"cuda"
:
if
torch_device
==
"cuda"
:
EXPECTED_OUTPUT_STR
=
'def hello_world():
\n
print("Hello World")
\n
\n
#
'
EXPECTED_OUTPUT_STR
=
'def hello_world():
\n
print("Hello World")
\n
return True
\n\n
result =
'
else
:
else
:
EXPECTED_OUTPUT_STR
=
"def hello_world():
\r\n
print('Hello, World.')
\r\n\r\n\r
"
EXPECTED_OUTPUT_STR
=
"def hello_world():
\r\n
print('Hello, World.')
\r\n\r\n\r
"
...
...
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