Update expected values in CodeGen tests (#17888)
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user