Unverified Commit c3526400 authored by Patrick von Platen's avatar Patrick von Platen Committed by GitHub
Browse files

fix (#17310)

parent d9050dc7
......@@ -3868,6 +3868,13 @@ class Speech2Text2PreTrainedModel(metaclass=DummyObject):
SPLINTER_PRETRAINED_MODEL_ARCHIVE_LIST = None
class SplinterForPreTraining(metaclass=DummyObject):
_backends = ["torch"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["torch"])
class SplinterForQuestionAnswering(metaclass=DummyObject):
_backends = ["torch"]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment