Unverified Commit 07747863 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix label name in DataCollatorForNextSentencePrediction test (#8048)

parent 8bbe8247
......@@ -175,7 +175,7 @@ class DataCollatorIntegrationTest(unittest.TestCase):
total_samples = batch["input_ids"].shape[0]
self.assertEqual(batch["input_ids"].shape, torch.Size((total_samples, 512)))
self.assertEqual(batch["token_type_ids"].shape, torch.Size((total_samples, 512)))
self.assertEqual(batch["masked_lm_labels"].shape, torch.Size((total_samples, 512)))
self.assertEqual(batch["labels"].shape, torch.Size((total_samples, 512)))
self.assertEqual(batch["next_sentence_label"].shape, torch.Size((total_samples,)))
@slow
......
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