Skip to content

Commit

Permalink
Small test fix to have right padding (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashaDoubov authored Nov 22, 2023
1 parent 1793c36 commit 1eecd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_flash_triton_torch.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_attn_impl(attn_impl_0: str,
if pad_attention_mask:
# zero out the last third of the attention mask
# to simulate padding
attention_mask[:, :s // 3] = 0
attention_mask[:, -s // 3:] = 0

def gen_bias(attn_impl: str):
causal = True
Expand Down

0 comments on commit 1eecd4c

Please sign in to comment.