Make FeaturesManager.get_model_from_feature a static method (#16357)

This commit is contained in:
Michael Benayoun 2022-03-25 11:35:48 +01:00 committed by GitHub
parent aa6cfe9c4b
commit 2b23e0801a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,6 +344,7 @@ class FeaturesManager:
)
return task_to_automodel[task]
@staticmethod
def get_model_from_feature(
feature: str, model: str, framework: str = "pt", cache_dir: str = None
) -> Union[PreTrainedModel, TFPreTrainedModel]: