Skip to content

Commit 6ae3aee

Browse files
committed
fix
Signed-off-by: Yaoyao Ding <[email protected]>
1 parent bc4a99e commit 6ae3aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/attention/flash_attention_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def __call__(
183183
mask = self.register_tensor(
184184
dtype=boolean,
185185
shape=[self.block_q, self.block_kv],
186-
init=lambda i, j: i + q_offset >= i + kv_offset,
186+
init=lambda i, j: i + q_offset >= j + kv_offset,
187187
)
188188
score = score + self.where(mask, x=0.0, y=-1e6)
189189

0 commit comments

Comments
 (0)