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

Method _reset_stateful_cache

src/diffusers/models/cache_utils.py:149–152  ·  view source on GitHub ↗
(self, recurse: bool = True)

Source from the content-addressed store, hash-verified

147 self._cache_config = None
148
149 def _reset_stateful_cache(self, recurse: bool = True) -> None:
150 from ..hooks import HookRegistry
151
152 HookRegistry.check_if_exists_or_initialize(self).reset_stateful_hooks(recurse=recurse)
153
154 @contextmanager
155 def cache_context(self, name: str):

Callers 5

__call__Method · 0.80

Calls 2

reset_stateful_hooksMethod · 0.80

Tested by

no test coverage detected