Skip to content

Commit

Permalink
Make FeaturesManager.get_model_from_feature a static method (huggingf…
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbenayoun authored Mar 25, 2022
1 parent aa6cfe9 commit 2b23e08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/onnx/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def get_model_class_for_feature(feature: str, framework: str = "pt") -> Type:
)
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]:
Expand Down

0 comments on commit 2b23e08

Please sign in to comment.