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
7783fa6b
Commit
7783fa6b
authored
May 09, 2022
by
Sylvain Gugger
Browse files
Fix quality and repo consistency
parent
05fc1766
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
docs/source/en/serialization.mdx
docs/source/en/serialization.mdx
+1
-1
src/transformers/__init__.py
src/transformers/__init__.py
+1
-1
src/transformers/models/auto/__init__.py
src/transformers/models/auto/__init__.py
+1
-1
src/transformers/utils/dummy_tf_objects.py
src/transformers/utils/dummy_tf_objects.py
+7
-0
No files found.
docs/source/en/serialization.mdx
View file @
7783fa6b
...
@@ -68,7 +68,7 @@ Ready-made configurations include the following architectures:
...
@@ -68,7 +68,7 @@ Ready-made configurations include the following architectures:
- M2M100
- M2M100
- Marian
- Marian
- mBART
- mBART
- MobileB
ert
- MobileB
ERT
- OpenAI GPT-2
- OpenAI GPT-2
- PLBart
- PLBart
- RoBERTa
- RoBERTa
...
...
src/transformers/__init__.py
View file @
7783fa6b
...
@@ -1793,12 +1793,12 @@ if is_tf_available():
...
@@ -1793,12 +1793,12 @@ if is_tf_available():
"TFAutoModelForImageClassification"
,
"TFAutoModelForImageClassification"
,
"TFAutoModelForMaskedLM"
,
"TFAutoModelForMaskedLM"
,
"TFAutoModelForMultipleChoice"
,
"TFAutoModelForMultipleChoice"
,
"TFAutoModelForNextSentencePrediction"
,
"TFAutoModelForPreTraining"
,
"TFAutoModelForPreTraining"
,
"TFAutoModelForQuestionAnswering"
,
"TFAutoModelForQuestionAnswering"
,
"TFAutoModelForSeq2SeqLM"
,
"TFAutoModelForSeq2SeqLM"
,
"TFAutoModelForSequenceClassification"
,
"TFAutoModelForSequenceClassification"
,
"TFAutoModelForSpeechSeq2Seq"
,
"TFAutoModelForSpeechSeq2Seq"
,
"TFAutoModelForNextSentencePrediction"
,
"TFAutoModelForTableQuestionAnswering"
,
"TFAutoModelForTableQuestionAnswering"
,
"TFAutoModelForTokenClassification"
,
"TFAutoModelForTokenClassification"
,
"TFAutoModelForVision2Seq"
,
"TFAutoModelForVision2Seq"
,
...
...
src/transformers/models/auto/__init__.py
View file @
7783fa6b
...
@@ -103,12 +103,12 @@ if is_tf_available():
...
@@ -103,12 +103,12 @@ if is_tf_available():
"TFAutoModelForImageClassification"
,
"TFAutoModelForImageClassification"
,
"TFAutoModelForMaskedLM"
,
"TFAutoModelForMaskedLM"
,
"TFAutoModelForMultipleChoice"
,
"TFAutoModelForMultipleChoice"
,
"TFAutoModelForNextSentencePrediction"
,
"TFAutoModelForPreTraining"
,
"TFAutoModelForPreTraining"
,
"TFAutoModelForQuestionAnswering"
,
"TFAutoModelForQuestionAnswering"
,
"TFAutoModelForSeq2SeqLM"
,
"TFAutoModelForSeq2SeqLM"
,
"TFAutoModelForSequenceClassification"
,
"TFAutoModelForSequenceClassification"
,
"TFAutoModelForSpeechSeq2Seq"
,
"TFAutoModelForSpeechSeq2Seq"
,
"TFAutoModelForNextSentencePrediction"
,
"TFAutoModelForTableQuestionAnswering"
,
"TFAutoModelForTableQuestionAnswering"
,
"TFAutoModelForTokenClassification"
,
"TFAutoModelForTokenClassification"
,
"TFAutoModelForVision2Seq"
,
"TFAutoModelForVision2Seq"
,
...
...
src/transformers/utils/dummy_tf_objects.py
View file @
7783fa6b
...
@@ -335,6 +335,13 @@ class TFAutoModelForMultipleChoice(metaclass=DummyObject):
...
@@ -335,6 +335,13 @@ class TFAutoModelForMultipleChoice(metaclass=DummyObject):
requires_backends
(
self
,
[
"tf"
])
requires_backends
(
self
,
[
"tf"
])
class
TFAutoModelForNextSentencePrediction
(
metaclass
=
DummyObject
):
_backends
=
[
"tf"
]
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_backends
(
self
,
[
"tf"
])
class
TFAutoModelForPreTraining
(
metaclass
=
DummyObject
):
class
TFAutoModelForPreTraining
(
metaclass
=
DummyObject
):
_backends
=
[
"tf"
]
_backends
=
[
"tf"
]
...
...
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