Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 7, 2023
1 parent 64ce15c commit a44fb01
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion elk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,5 @@ def run():
raise ValueError(f"Unknown command {args.command}")



if __name__ == "__main__":
run()
1 change: 0 additions & 1 deletion elk/evaluation/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ def evaluate_reporters(cfg: EvaluateConfig):

with torch.no_grad(), open(csv_file, "w") as f:
for layer_idx, hidden_state in enumerate(layers):

x0, x1 = hidden_state.to(cfg.device).float().chunk(2, dim=-1)
result = reporter.score(
(x0, x1),
Expand Down

0 comments on commit a44fb01

Please sign in to comment.