We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88d917d commit e4d8b12Copy full SHA for e4d8b12
src/diffusers/utils/dummy_pt_objects.py
@@ -2,6 +2,21 @@
2
from ..utils import DummyObject, requires_backends
3
4
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
16
+ def from_pretrained(cls, *args, **kwargs):
17
18
19
20
class PyramidAttentionBroadcastConfig(metaclass=DummyObject):
21
_backends = ["torch"]
22
0 commit comments