Skip to content

Commit a8a9269

Browse files
fix function not having return value in dist case (#76186)
1 parent cce2771 commit a8a9269

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/paddle/nn/functional/flash_attention.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@ def scaled_dot_product_attention(
14531453
dropout_p,
14541454
is_causal,
14551455
)
1456+
return out
14561457

14571458
if attn_mask is None:
14581459
# downgraded to ordinary flash attention implementation

0 commit comments

Comments
 (0)