Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Vvsmile/Paddle into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Vvsmile committed Jun 20, 2023
2 parents 7f770c8 + 49a45f7 commit 7bf3ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/nn/functional/flash_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _math_attention(


def _select_sdp_cuda(head_dim):
if head_dim < 128:
if head_dim <= 128:
return "flash_attn"
else:
return "mem_efficient"
Expand Down

0 comments on commit 7bf3ed9

Please sign in to comment.