MCPcopy Create free account
hub / github.com/huggingface/diffusers / get

Method get

src/diffusers/hooks/_helpers.py:66–70  ·  view source on GitHub ↗
(cls, model_class: Type)

Source from the content-addressed store, hash-verified

64
65 @classmethod
66 def get(cls, model_class: Type) -> AttentionProcessorMetadata:
67 cls._register()
68 if model_class not in cls._registry:
69 raise ValueError(f"Model class {model_class} not registered.")
70 return cls._registry[model_class]
71
72 @classmethod
73 def _register(cls):

Callers

nothing calls this directly

Calls 1

_registerMethod · 0.45

Tested by

no test coverage detected