Add TFAutoModelForSemanticSegmentation to the main __init__.py (#18600)
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
|||||||
"TFAutoModelForNextSentencePrediction",
|
"TFAutoModelForNextSentencePrediction",
|
||||||
"TFAutoModelForPreTraining",
|
"TFAutoModelForPreTraining",
|
||||||
"TFAutoModelForQuestionAnswering",
|
"TFAutoModelForQuestionAnswering",
|
||||||
|
"TFAutoModelForSemanticSegmentation",
|
||||||
"TFAutoModelForSeq2SeqLM",
|
"TFAutoModelForSeq2SeqLM",
|
||||||
"TFAutoModelForSequenceClassification",
|
"TFAutoModelForSequenceClassification",
|
||||||
"TFAutoModelForSpeechSeq2Seq",
|
"TFAutoModelForSpeechSeq2Seq",
|
||||||
@@ -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:
|
|||||||
"TFAutoModelForNextSentencePrediction",
|
"TFAutoModelForNextSentencePrediction",
|
||||||
"TFAutoModelForPreTraining",
|
"TFAutoModelForPreTraining",
|
||||||
"TFAutoModelForQuestionAnswering",
|
"TFAutoModelForQuestionAnswering",
|
||||||
|
"TFAutoModelForSemanticSegmentation",
|
||||||
"TFAutoModelForSeq2SeqLM",
|
"TFAutoModelForSeq2SeqLM",
|
||||||
"TFAutoModelForSequenceClassification",
|
"TFAutoModelForSequenceClassification",
|
||||||
"TFAutoModelForSpeechSeq2Seq",
|
"TFAutoModelForSpeechSeq2Seq",
|
||||||
@@ -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):
|
|||||||
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"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user