Skip to content

Commit

Permalink
pyright clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfulano committed Aug 23, 2023
1 parent ab836e9 commit 290d46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llmfoundry/models/utils/bert_padding.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ def pad_input(hidden_states: torch.Tensor, indices: torch.Tensor, batch: int,
"""
output = index_put_first_axis(hidden_states, indices, batch * seqlen)
return rearrange(
output,
output, #pyright: ignore[reportGeneralTypeIssues]
'(b s) ... -> b s ...', #pyright: ignore[reportGeneralTypeIssues]
b=batch)

0 comments on commit 290d46c

Please sign in to comment.