Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
5a386fb0
Unverified
Commit
5a386fb0
authored
Mar 15, 2022
by
Pavel Belevich
Committed by
GitHub
Mar 15, 2022
Browse files
Make transformers.utils.fx. _SUPPORTED_MODELS unique (#16015)
parent
a7aca42f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/utils/fx.py
src/transformers/utils/fx.py
+3
-1
No files found.
src/transformers/utils/fx.py
View file @
5a386fb0
...
...
@@ -115,7 +115,9 @@ _SPECIAL_SUPPORTED_MODELS = [
# TODO: add support for them as it should be quite easy to do so (small blocking issues).
# XLNetForQuestionAnswering,
]
_SUPPORTED_MODELS
=
tuple
(
_REGULAR_SUPPORTED_MODELS
+
_SPECIAL_SUPPORTED_MODELS
)
_SUPPORTED_MODELS
=
tuple
(
sorted
(
list
(
set
(
_REGULAR_SUPPORTED_MODELS
+
_SPECIAL_SUPPORTED_MODELS
)),
key
=
lambda
c
:
c
.
__name__
)
)
class
HFProxy
(
Proxy
):
...
...
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