Skip to content

Commit

Permalink
Merge pull request Dao-AILab#60 from 201419/patch-1
Browse files Browse the repository at this point in the history
fix typo in function mha_fwd
  • Loading branch information
tridao authored Oct 17, 2022
2 parents 52fb4b7 + ff07250 commit 1d0b41b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/flash_attn/fmha_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ mha_fwd(const at::Tensor &q, // total_q x num_heads x head_size, total_q
TORCH_CHECK(k.stride(-1) == 1);
TORCH_CHECK(v.stride(-1) == 1);
TORCH_CHECK(out.stride(-1) == 1);
TORCH_CHECK(cu_seqlens_k.is_contiguous());
TORCH_CHECK(cu_seqlens_q.is_contiguous());
TORCH_CHECK(cu_seqlens_k.is_contiguous());

const auto sizes = q.sizes();
Expand Down

0 comments on commit 1d0b41b

Please sign in to comment.