Skip to content

Commit e4d8b12

Browse files
committed
make fix-copies
1 parent 88d917d commit e4d8b12

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/diffusers/utils/dummy_pt_objects.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22
from ..utils import DummyObject, requires_backends
33

44

5+
class HookRegistry(metaclass=DummyObject):
6+
_backends = ["torch"]
7+
8+
def __init__(self, *args, **kwargs):
9+
requires_backends(self, ["torch"])
10+
11+
@classmethod
12+
def from_config(cls, *args, **kwargs):
13+
requires_backends(cls, ["torch"])
14+
15+
@classmethod
16+
def from_pretrained(cls, *args, **kwargs):
17+
requires_backends(cls, ["torch"])
18+
19+
520
class PyramidAttentionBroadcastConfig(metaclass=DummyObject):
621
_backends = ["torch"]
722

0 commit comments

Comments
 (0)