(block: torch.nn.Module, state_manager: StateManager, is_tail: bool = False)
| 253 | |
| 254 | |
| 255 | def _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) |
no test coverage detected
searching dependent graphs…