Skip to content

Commit

Permalink
remove calling self.leace.update twice (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
lauritowal committed Aug 5, 2023
1 parent 020f3fc commit d10b4c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion elk/training/eigen_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def update(self, hiddens: Tensor) -> None:
if self.config.erase_prompts:
# Independent indicator for each (template, pseudo-label) pair
indicators = torch.eye(k * v, device=hiddens.device).expand(n, -1, -1)
self.leace.update(x=hiddens, z=indicators)
else:
# Only use indicators for each pseudo-label
indicators = torch.eye(k, device=hiddens.device).expand(n, v, -1, -1)
Expand Down

0 comments on commit d10b4c2

Please sign in to comment.