Skip to content

Commit 744956f

Browse files
remove repeated open_ended_activations processing (#58)
This caused errors when attempting to run feature_intervention_generate() with and without return_activations=True.
1 parent a1ca600 commit 744956f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

circuit_tracer/replacement_model.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,6 @@ def clear_and_add_hooks(tensor, hook):
881881
self.reset_hooks()
882882

883883
logits = torch.cat((logit_cache[0], *open_ended_logits), dim=1) # type:ignore
884-
open_ended_activations = torch.stack(
885-
[torch.cat(acts, dim=0) for acts in open_ended_activations], # type:ignore
886-
dim=0,
887-
)
888884
if return_activations:
889885
activation_cache = torch.stack(activation_cache)
890886
if open_ended_activations and any(acts for acts in open_ended_activations):

0 commit comments

Comments
 (0)