MCPcopy Create free account
hub / github.com/deepseek-ai/DeepSpec / hook

Function hook

scripts/data/prepare_target_cache.py:97–98  ·  view source on GitHub ↗
(_module, _inputs, output)

Source from the content-addressed store, hash-verified

95
96 def capture_layer(layer_id: int):
97 def hook(_module, _inputs, output):
98 captured_hidden_states[layer_id] = _get_hook_tensor(output).detach()
99
100 return hook
101

Callers

nothing calls this directly

Calls 1

_get_hook_tensorFunction · 0.85

Tested by

no test coverage detected