Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
flash-attention
Commits
1d0b41be
Unverified
Commit
1d0b41be
authored
Oct 17, 2022
by
Tri Dao
Committed by
GitHub
Oct 17, 2022
Browse files
Merge pull request #60 from 201419/patch-1
fix typo in function mha_fwd
parents
52fb4b72
ff07250e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/flash_attn/fmha_api.cpp
csrc/flash_attn/fmha_api.cpp
+1
-1
No files found.
csrc/flash_attn/fmha_api.cpp
View file @
1d0b41be
...
@@ -216,7 +216,7 @@ mha_fwd(const at::Tensor &q, // total_q x num_heads x head_size, total_q
...
@@ -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
(
k
.
stride
(
-
1
)
==
1
);
TORCH_CHECK
(
v
.
stride
(
-
1
)
==
1
);
TORCH_CHECK
(
v
.
stride
(
-
1
)
==
1
);
TORCH_CHECK
(
out
.
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
());
TORCH_CHECK
(
cu_seqlens_k
.
is_contiguous
());
const
auto
sizes
=
q
.
sizes
();
const
auto
sizes
=
q
.
sizes
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment