Fix modular model converter unable to generate Processor classes (#33737)
fix: fix wrong file type for processor in `modular_model_converter.py`
This commit is contained in:
@@ -502,7 +502,7 @@ def replace_call_to_super(class_finder: ClassFinder, updated_node: cst.ClassDef,
|
||||
TYPE_TO_FILE_TYPE = {
|
||||
"Config": "configuration",
|
||||
"Tokenizer": "tokenization",
|
||||
"Processor": "processor",
|
||||
"Processor": "processing",
|
||||
"ImageProcessor": "image_processing",
|
||||
"FeatureExtractor": "feature_extractor",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user