Unverified Commit 2156619f authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Add `TFAutoModelForSemanticSegmentation` to the main `__init__.py` (#18600)


Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 4eed2bec
...@@ -186,6 +186,10 @@ Likewise, if your `NewModel` is a subclass of [`PreTrainedModel`], make sure its ...@@ -186,6 +186,10 @@ Likewise, if your `NewModel` is a subclass of [`PreTrainedModel`], make sure its
[[autodoc]] TFAutoModelForImageClassification [[autodoc]] TFAutoModelForImageClassification
## TFAutoModelForSemanticSegmentation
[[autodoc]] TFAutoModelForSemanticSegmentation
## TFAutoModelForMaskedLM ## TFAutoModelForMaskedLM
[[autodoc]] TFAutoModelForMaskedLM [[autodoc]] TFAutoModelForMaskedLM
......
...@@ -2105,6 +2105,7 @@ else: ...@@ -2105,6 +2105,7 @@ else:
"TFAutoModelForNextSentencePrediction", "TFAutoModelForNextSentencePrediction",
"TFAutoModelForPreTraining", "TFAutoModelForPreTraining",
"TFAutoModelForQuestionAnswering", "TFAutoModelForQuestionAnswering",
"TFAutoModelForSemanticSegmentation",
"TFAutoModelForSeq2SeqLM", "TFAutoModelForSeq2SeqLM",
"TFAutoModelForSequenceClassification", "TFAutoModelForSequenceClassification",
"TFAutoModelForSpeechSeq2Seq", "TFAutoModelForSpeechSeq2Seq",
...@@ -4599,6 +4600,7 @@ if TYPE_CHECKING: ...@@ -4599,6 +4600,7 @@ if TYPE_CHECKING:
TFAutoModelForNextSentencePrediction, TFAutoModelForNextSentencePrediction,
TFAutoModelForPreTraining, TFAutoModelForPreTraining,
TFAutoModelForQuestionAnswering, TFAutoModelForQuestionAnswering,
TFAutoModelForSemanticSegmentation,
TFAutoModelForSeq2SeqLM, TFAutoModelForSeq2SeqLM,
TFAutoModelForSequenceClassification, TFAutoModelForSequenceClassification,
TFAutoModelForSpeechSeq2Seq, TFAutoModelForSpeechSeq2Seq,
......
...@@ -128,6 +128,7 @@ else: ...@@ -128,6 +128,7 @@ else:
"TFAutoModelForNextSentencePrediction", "TFAutoModelForNextSentencePrediction",
"TFAutoModelForPreTraining", "TFAutoModelForPreTraining",
"TFAutoModelForQuestionAnswering", "TFAutoModelForQuestionAnswering",
"TFAutoModelForSemanticSegmentation",
"TFAutoModelForSeq2SeqLM", "TFAutoModelForSeq2SeqLM",
"TFAutoModelForSequenceClassification", "TFAutoModelForSequenceClassification",
"TFAutoModelForSpeechSeq2Seq", "TFAutoModelForSpeechSeq2Seq",
...@@ -271,6 +272,7 @@ if TYPE_CHECKING: ...@@ -271,6 +272,7 @@ if TYPE_CHECKING:
TFAutoModelForNextSentencePrediction, TFAutoModelForNextSentencePrediction,
TFAutoModelForPreTraining, TFAutoModelForPreTraining,
TFAutoModelForQuestionAnswering, TFAutoModelForQuestionAnswering,
TFAutoModelForSemanticSegmentation,
TFAutoModelForSeq2SeqLM, TFAutoModelForSeq2SeqLM,
TFAutoModelForSequenceClassification, TFAutoModelForSequenceClassification,
TFAutoModelForSpeechSeq2Seq, TFAutoModelForSpeechSeq2Seq,
......
...@@ -362,6 +362,13 @@ class TFAutoModelForQuestionAnswering(metaclass=DummyObject): ...@@ -362,6 +362,13 @@ class TFAutoModelForQuestionAnswering(metaclass=DummyObject):
requires_backends(self, ["tf"]) requires_backends(self, ["tf"])
class TFAutoModelForSemanticSegmentation(metaclass=DummyObject):
_backends = ["tf"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["tf"])
class TFAutoModelForSeq2SeqLM(metaclass=DummyObject): class TFAutoModelForSeq2SeqLM(metaclass=DummyObject):
_backends = ["tf"] _backends = ["tf"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment