Use self.config_tester.run_common_tests() (#31431)
* First testing updating config tests * Use run_common_tests
This commit is contained in:
@@ -173,15 +173,12 @@ class BitModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.model_tester = BitModelTester(self)
|
||||
self.config_tester = ConfigTester(self, config_class=BitConfig, has_text_modality=False)
|
||||
self.config_tester = ConfigTester(
|
||||
self, config_class=BitConfig, has_text_modality=False, common_properties=["num_channels"]
|
||||
)
|
||||
|
||||
def test_config(self):
|
||||
self.config_tester.create_and_test_config_to_json_string()
|
||||
self.config_tester.create_and_test_config_to_json_file()
|
||||
self.config_tester.create_and_test_config_from_and_save_pretrained()
|
||||
self.config_tester.create_and_test_config_with_num_labels()
|
||||
self.config_tester.check_config_can_be_init_without_params()
|
||||
self.config_tester.check_config_arguments_init()
|
||||
self.config_tester.run_common_tests()
|
||||
|
||||
@unittest.skip(reason="Bit does not output attentions")
|
||||
def test_attention_outputs(self):
|
||||
|
||||
Reference in New Issue
Block a user