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
OpenDAS
tilelang
Commits
907c3ff0
Unverified
Commit
907c3ff0
authored
Sep 16, 2025
by
botbw
Committed by
GitHub
Sep 16, 2025
Browse files
[Example] Remove redundant param (#821)
parent
d3e75b70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/flash_attention/example_mha_fwd_bshd.py
examples/flash_attention/example_mha_fwd_bshd.py
+1
-1
No files found.
examples/flash_attention/example_mha_fwd_bshd.py
View file @
907c3ff0
...
@@ -193,7 +193,7 @@ def main(
...
@@ -193,7 +193,7 @@ def main(
print
(
"Tile-lang: {:.2f} ms"
.
format
(
latency
))
print
(
"Tile-lang: {:.2f} ms"
.
format
(
latency
))
print
(
"Tile-lang: {:.2f} TFlops"
.
format
(
total_flops
/
latency
*
1e-9
))
print
(
"Tile-lang: {:.2f} TFlops"
.
format
(
total_flops
/
latency
*
1e-9
))
else
:
else
:
best_result
=
flashattn
(
batch
,
heads
,
seq_len
,
dim
,
is_causal
,
tune
=
tune
)
best_result
=
flashattn
(
batch
,
heads
,
seq_len
,
dim
,
is_causal
)
best_latency
=
best_result
.
latency
best_latency
=
best_result
.
latency
best_config
=
best_result
.
config
best_config
=
best_result
.
config
ref_latency
=
best_result
.
ref_latency
ref_latency
=
best_result
.
ref_latency
...
...
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