diff --git a/src/transformers/utils/dummy_torchvision_objects.py b/src/transformers/utils/dummy_torchvision_objects.py deleted file mode 100644 index 6d752e1f529888..00000000000000 --- a/src/transformers/utils/dummy_torchvision_objects.py +++ /dev/null @@ -1,27 +0,0 @@ -# This file is autogenerated by the command `make fix-copies`, do not edit. -# flake8: noqa -from ..utils import DummyObject, requires_backends - - -DETA_PRETRAINED_MODEL_ARCHIVE_LIST = None - - -class DetaForObjectDetection(metaclass=DummyObject): - _backends = ["torchvision"] - - def __init__(self, *args, **kwargs): - requires_backends(self, ["torchvision"]) - - -class DetaModel(metaclass=DummyObject): - _backends = ["torchvision"] - - def __init__(self, *args, **kwargs): - requires_backends(self, ["torchvision"]) - - -class DetaPreTrainedModel(metaclass=DummyObject): - _backends = ["torchvision"] - - def __init__(self, *args, **kwargs): - requires_backends(self, ["torchvision"])