dummy_torchvision_objects.py 482 B

12345678910111213141516
  1. # This file is autogenerated by the command `make fix-copies`, do not edit.
  2. from ..utils import DummyObject, requires_backends
  3. class BaseImageProcessorFast(metaclass=DummyObject):
  4. _backends = ["torchvision"]
  5. def __init__(self, *args, **kwargs):
  6. requires_backends(self, ["torchvision"])
  7. class ViTImageProcessorFast(metaclass=DummyObject):
  8. _backends = ["torchvision"]
  9. def __init__(self, *args, **kwargs):
  10. requires_backends(self, ["torchvision"])