Skip to content

Commit

Permalink
type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobfulano committed Jan 5, 2024
1 parent 95a4753 commit 28ccb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/benchmarks/bert/src/bert_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def forward(
elif self.alibi.device != hidden_states.device:
# Device catch-up
self.alibi = self.alibi.to(hidden_states.device)
self.slopes = self.slopes.to(hidden_states.device)
self.slopes = self.slopes.to(hidden_states.device) # type: ignore
alibi_bias = self.alibi[:, :, :seqlen, :seqlen]
attn_bias = extended_attention_mask[:, :, :seqlen, :seqlen]
alibi_attn_mask = attn_bias + alibi_bias
Expand Down

0 comments on commit 28ccb4f

Please sign in to comment.