Unverified Commit 569b679a authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Update expected values in CodeGen tests (#17888)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent cb425024
...@@ -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\nresult ='
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"
......
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