Skip to content

Commit 0dbd673

Browse files
committed
Add blank line for readability before dynamic mask generation in create_mask
1 parent a2b5309 commit 0dbd673

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

flash_dmattn/utils/mask.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def create_mask(
102102
f"attention_mask shape {attention_mask.shape} is not compatible with key_len {key_len} or query_len {query_len}."
103103
)
104104

105+
# Generate dynamic mask based on attention_bias and attention_mask
105106
attention_mask = dynamic_mask(attention_bias, attention_mask, window_size, min_dtype)
106107

107108
return attention_mask

0 commit comments

Comments
 (0)