fix typo in test xlm tf
This commit is contained in:
@@ -341,5 +341,5 @@ class TFXLMModelLanguageGenerationTest(unittest.TestCase):
|
|||||||
447,
|
447,
|
||||||
] # the president the president the president the president the president the president the president the president the president the president
|
] # the president the president the president the president the president the president the president the president the president the president
|
||||||
# TODO(PVP): this and other input_ids I tried for generation give pretty bad results. Not sure why. Model might just not be made for auto-regressive inference
|
# TODO(PVP): this and other input_ids I tried for generation give pretty bad results. Not sure why. Model might just not be made for auto-regressive inference
|
||||||
output_ids = model.generate(input_ids)
|
output_ids = model.generate(input_ids, do_sample=False)
|
||||||
self.assertListEqual(output_ids[0].numpy().tolist(), expected_output_ids, do_sample=False)
|
self.assertListEqual(output_ids[0].numpy().tolist(), expected_output_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user