Use self.config_tester.run_common_tests() (#31431)
* First testing updating config tests * Use run_common_tests
This commit is contained in:
@@ -149,17 +149,15 @@ class DepthAnythingModelTest(ModelTesterMixin, PipelineTesterMixin, unittest.Tes
|
||||
def setUp(self):
|
||||
self.model_tester = DepthAnythingModelTester(self)
|
||||
self.config_tester = ConfigTester(
|
||||
self, config_class=DepthAnythingConfig, has_text_modality=False, hidden_size=37
|
||||
self,
|
||||
config_class=DepthAnythingConfig,
|
||||
has_text_modality=False,
|
||||
hidden_size=37,
|
||||
common_properties=["patch_size"],
|
||||
)
|
||||
|
||||
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_from_and_save_pretrained_subfolder()
|
||||
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="Depth Anything with AutoBackbone does not have a base model and hence no input_embeddings")
|
||||
def test_inputs_embeds(self):
|
||||
|
||||
Reference in New Issue
Block a user