From d64a408664c71d09b2e0ca0f5ca0cf269cf3e4e7 Mon Sep 17 00:00:00 2001 From: NielsRogge Date: Tue, 24 Jan 2023 16:10:48 +0000 Subject: [PATCH] Remove dummies --- .../utils/dummy_torchvision_objects.py | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/transformers/utils/dummy_torchvision_objects.py 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"])