Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions flash_dmattn/flash_dmattn_triton.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ def _fwd_kernel(
)

# Check if any element in mask is non-zero
# any_active = tl.sum(mask > 0) > 0
any_active = True
any_active = tl.sum(mask > 0) > 0
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Remove the commented-out legacy code now that the proper mask check is active to reduce clutter.

Copilot uses AI. Check for mistakes.

# compute acc_s
acc_s = tl.zeros([BLOCK_M, BLOCK_N], dtype=tl.float32)
Expand Down