Skip to content

Commit

Permalink
make fix-copies
Browse files Browse the repository at this point in the history
  • Loading branch information
a-r-r-o-w committed Jan 13, 2025
1 parent 88d917d commit e4d8b12
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/diffusers/utils/dummy_pt_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
from ..utils import DummyObject, requires_backends


class HookRegistry(metaclass=DummyObject):
_backends = ["torch"]

def __init__(self, *args, **kwargs):
requires_backends(self, ["torch"])

@classmethod
def from_config(cls, *args, **kwargs):
requires_backends(cls, ["torch"])

@classmethod
def from_pretrained(cls, *args, **kwargs):
requires_backends(cls, ["torch"])


class PyramidAttentionBroadcastConfig(metaclass=DummyObject):
_backends = ["torch"]

Expand Down

0 comments on commit e4d8b12

Please sign in to comment.