Have dummy processors have a from_pretrained method (#12145)

This commit is contained in:
Lysandre Debut
2021-06-15 14:39:05 +02:00
committed by GitHub
parent 9b393240a2
commit d07b540a37
5 changed files with 61 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ def create_dummy_object(name, backend_name):
"ForTokenClassification",
"Model",
"Tokenizer",
"Processor",
]
if name.isupper():
return DUMMY_CONSTANT.format(name)