CoolFace
Apppublic

declare-lab/tango2

sourceHugging Faceupdated 2y agoView on Hugging Face
92likes
dummy_torch_and_scipy_objects.py18 linesDownload Raw Back to utils
1# This file is autogenerated by the command `make fix-copies`, do not edit.2from ..utils import DummyObject, requires_backends3 4 5class LMSDiscreteScheduler(metaclass=DummyObject):6    _backends = ["torch", "scipy"]7 8    def __init__(self, *args, **kwargs):9        requires_backends(self, ["torch", "scipy"])10 11    @classmethod12    def from_config(cls, *args, **kwargs):13        requires_backends(cls, ["torch", "scipy"])14 15    @classmethod16    def from_pretrained(cls, *args, **kwargs):17        requires_backends(cls, ["torch", "scipy"])18