mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 10:12:23 +06:00
rename the function to match the rest of the test convention (#5692)
This commit is contained in:
parent
74843695eb
commit
443b0cad96
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user