We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400c6a7 commit 558ea2aCopy full SHA for 558ea2a
tests/trainer/test_data_collator.py
@@ -1966,6 +1966,7 @@ def test__whole_word_mask(self):
1966
1967
np.testing.assert_array_equal(output_mask, expected_mask)
1968
1969
+
1970
class DataCollatorWithFlatteningTest(unittest.TestCase):
1971
"""Tests for DataCollatorWithFlattening"""
1972
@@ -2016,5 +2017,3 @@ def test_flattening_with_list_labels(self):
2016
2017
self.assertIsInstance(batch, dict)
2018
self.assertEqual(batch["input_ids"].shape, (1, 7))
2019
self.assertEqual(batch["labels"].shape, (1, 7))
-
2020
0 commit comments