Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hzfinfdu committed Jul 1, 2024
1 parent 25a4689 commit b84b799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lm_saes/sae.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def train_finetune_for_suppression_parameters(self):
p.requires_grad_(True)


def compute_norm_factor(self, x: torch.Tensor, hook_point: str) -> torch.Tensor:
def compute_norm_factor(self, x: torch.Tensor, hook_point: str) -> float | torch.Tensor:
"""Compute the normalization factor for the activation vectors.
"""

Expand Down

0 comments on commit b84b799

Please sign in to comment.