Skip to content

Commit

Permalink
Documentation update FMHA __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lhallee authored Oct 1, 2024
1 parent 4a9dd7e commit f66fb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xformers/ops/fmha/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def memory_efficient_attention(
attn = attn.softmax(-1)
attn = F.dropout(attn, p)
attn = attn @ value
return attn.transpose(1, 2)
return attn.transpose(1, 2).contiguous()
:Examples:
Expand Down

0 comments on commit f66fb3f

Please sign in to comment.