Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2b23e080
Unverified
Commit
2b23e080
authored
Mar 25, 2022
by
Michael Benayoun
Committed by
GitHub
Mar 25, 2022
Browse files
Make FeaturesManager.get_model_from_feature a static method (#16357)
parent
aa6cfe9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/onnx/features.py
src/transformers/onnx/features.py
+1
-0
No files found.
src/transformers/onnx/features.py
View file @
2b23e080
...
...
@@ -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
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment