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 6c15a10 commit e9fd0caCopy full SHA for e9fd0ca
src/diffusers/models/attention_dispatch.py
@@ -179,7 +179,6 @@ def decorator(func):
179
180
@classmethod
181
def get_active_backend(cls):
182
- _check_backend_requirements(cls._active_backend)
183
return cls._active_backend, cls._backends[cls._active_backend]
184
185
@@ -227,6 +226,8 @@ def dispatch_attention_fn(
227
226
backend_name = AttentionBackendName(backend)
228
backend_fn = _AttentionBackendRegistry._backends.get(backend_name)
229
+ _check_backend_requirements(backend_name)
230
+
231
kwargs = {
232
"query": query,
233
"key": key,
0 commit comments