[configuration] remove redundant classmethod (#38812)
* remove redundant classmethod * warning message, add space between words * fix tests * fix copies
This commit is contained in:
committed by
GitHub
parent
02ea23cbde
commit
b56d721397
@@ -383,7 +383,11 @@ class Pix2StructModelTester:
|
||||
return config, input_ids, attention_mask, flattened_patches
|
||||
|
||||
def get_config(self, text_config, vision_config):
|
||||
return Pix2StructConfig.from_text_vision_configs(text_config, vision_config, projection_dim=64)
|
||||
return Pix2StructConfig(
|
||||
text_config=self.text_model_tester.get_config().to_dict(),
|
||||
vision_config=self.vision_model_tester.get_config().to_dict(),
|
||||
projection_dim=64,
|
||||
)
|
||||
|
||||
def prepare_config_and_inputs_for_common(self):
|
||||
config_and_inputs = self.prepare_config_and_inputs()
|
||||
|
||||
Reference in New Issue
Block a user