Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/transformers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6222,7 +6222,6 @@
from .models.mbart import TFMBartForConditionalGeneration, TFMBartModel, TFMBartPreTrainedModel
from .models.mobilebert import (
TF_MOBILEBERT_PRETRAINED_MODEL_ARCHIVE_LIST,
TF_MOBILEVIT_PRETRAINED_MODEL_ARCHIVE_LIST,
TFMobileBertForMaskedLM,
TFMobileBertForMultipleChoice,
TFMobileBertForNextSentencePrediction,
Expand All @@ -6233,6 +6232,9 @@
TFMobileBertMainLayer,
TFMobileBertModel,
TFMobileBertPreTrainedModel,
)
from .models.mobilevit import (
TF_MOBILEVIT_PRETRAINED_MODEL_ARCHIVE_LIST,
TFMobileViTForImageClassification,
TFMobileViTForSemanticSegmentation,
TFMobileViTModel,
Expand Down
6 changes: 3 additions & 3 deletions src/transformers/utils/dummy_tf_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,9 +1647,6 @@ def __init__(self, *args, **kwargs):
TF_MOBILEBERT_PRETRAINED_MODEL_ARCHIVE_LIST = None


TF_MOBILEVIT_PRETRAINED_MODEL_ARCHIVE_LIST = None


class TFMobileBertForMaskedLM(metaclass=DummyObject):
_backends = ["tf"]

Expand Down Expand Up @@ -1720,6 +1717,9 @@ def __init__(self, *args, **kwargs):
requires_backends(self, ["tf"])


TF_MOBILEVIT_PRETRAINED_MODEL_ARCHIVE_LIST = None


class TFMobileViTForImageClassification(metaclass=DummyObject):
_backends = ["tf"]

Expand Down