MCPcopy Index your code
hub / github.com/huggingface/diffusers / _apply_fbc_block_hook

Function _apply_fbc_block_hook

src/diffusers/hooks/first_block_cache.py:255–258  ·  view source on GitHub ↗
(block: torch.nn.Module, state_manager: StateManager, is_tail: bool = False)

Source from the content-addressed store, hash-verified

253
254
255def _apply_fbc_block_hook(block: torch.nn.Module, state_manager: StateManager, is_tail: bool = False) -> None:
256 registry = HookRegistry.check_if_exists_or_initialize(block)
257 hook = FBCBlockHook(state_manager, is_tail)
258 registry.register_hook(hook, _FBC_BLOCK_HOOK)

Callers 1

apply_first_block_cacheFunction · 0.85

Calls 3

FBCBlockHookClass · 0.85
register_hookMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…