HaileyStorm
commited on
Update chess-gpt-eval-contrastive/mamba_module.py
Browse files
chess-gpt-eval-contrastive/mamba_module.py
CHANGED
@@ -94,7 +94,7 @@ class MambaPlayer:
|
|
94 |
self.activations[i] = {"won": [], "lost": []}
|
95 |
|
96 |
def hook(module, input, output, layer_idx=i):
|
97 |
-
self.activations[layer_idx]["current"] = output
|
98 |
|
99 |
self.hooks.append(layer.register_forward_hook(hook))
|
100 |
|
|
|
94 |
self.activations[i] = {"won": [], "lost": []}
|
95 |
|
96 |
def hook(module, input, output, layer_idx=i):
|
97 |
+
self.activations[layer_idx]["current"] = output#.detach().cpu().numpy()
|
98 |
|
99 |
self.hooks.append(layer.register_forward_hook(hook))
|
100 |
|