Skip to content

Commit

Permalink
ignore type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMallen committed Sep 21, 2023
1 parent d48519d commit 83d81d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elk/extraction/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def select_hiddens(
)
if cfg.get_lm_preds:
out_record["lm_log_odds"] = torch.stack(

Check failure on line 420 in elk/extraction/extraction.py

View workflow job for this annotation

GitHub Actions / run-tests (3.10, macos-latest)

Argument of type "Tensor" cannot be assigned to parameter "__value" of type "list[Unknown]" in function "__setitem__"   "Tensor" is incompatible with "list[Unknown]" (reportGeneralTypeIssues)

Check failure on line 420 in elk/extraction/extraction.py

View workflow job for this annotation

GitHub Actions / run-tests (3.11, macos-latest)

Argument of type "Tensor" cannot be assigned to parameter "__value" of type "list[Unknown]" in function "__setitem__"   "Tensor" is incompatible with "list[Unknown]" (reportGeneralTypeIssues)
[d["lm_log_odds"] for d in ex]
[d["lm_log_odds"] for d in ex] # type: ignore
)
del buffer[row_id]
yield out_record
Expand Down

0 comments on commit 83d81d9

Please sign in to comment.