(_module, _inputs, output)
| 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 |
nothing calls this directly
no test coverage detected