"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "bb464289ce41257d554e6a38c4f68e97757dd7da"
Commit 58fc8f97 authored by patrickvonplaten's avatar patrickvonplaten
Browse files

fix renaming problem

parent 857e0a0d
...@@ -300,7 +300,7 @@ class BartHeadTests(unittest.TestCase): ...@@ -300,7 +300,7 @@ class BartHeadTests(unittest.TestCase):
def test_generate_fp16(self): def test_generate_fp16(self):
config, input_ids, batch_size = self._get_config_and_data(output_past=True) config, input_ids, batch_size = self._get_config_and_data(output_past=True)
attention_mask = input_ids.ne(1) attention_mask = input_ids.ne(1)
lm_model = BartForMaskedLM(config).eval().to(torch_device).half() lm_model = BartForConditionalGeneration(config).eval().to(torch_device).half()
lm_model.generate(input_ids, attention_mask) lm_model.generate(input_ids, attention_mask)
......
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