mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-03 03:31:05 +06:00
Make FeaturesManager.get_model_from_feature a static method (#16357)
This commit is contained in:
parent
aa6cfe9c4b
commit
2b23e0801a
@ -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]:
|
||||
|
Loading…
Reference in New Issue
Block a user