rename the function to match the rest of the test convention (#5692)

This commit is contained in:
Stas Bekman 2020-07-13 03:09:49 -07:00 committed by GitHub
parent 74843695eb
commit 443b0cad96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ class XLMModelTester:
self.parent.assertListEqual(list(result["loss"].size()), [])
self.parent.assertListEqual(list(result["logits"].size()), [self.batch_size, self.type_sequence_label_size])
def create_and_check_xlm_for_token_classification(
def create_and_check_xlm_token_classif(
self,
config,
input_ids,
@ -383,9 +383,9 @@ class XLMModelTest(ModelTesterMixin, unittest.TestCase):
config_and_inputs = self.model_tester.prepare_config_and_inputs()
self.model_tester.create_and_check_xlm_sequence_classif(*config_and_inputs)
def test_xlm_for_token_classification(self):
def test_xlm_token_classif(self):
config_and_inputs = self.model_tester.prepare_config_and_inputs()
self.model_tester.create_and_check_xlm_for_token_classification(*config_and_inputs)
self.model_tester.create_and_check_xlm_token_classif(*config_and_inputs)
@slow
def test_model_from_pretrained(self):