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
composable_kernel_ROCM
Commits
9d6a3704
Commit
9d6a3704
authored
Apr 29, 2024
by
Po Yen Chen
Browse files
Avoid using reference type in type trait
parent
8aa3f1be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/ck_tile/core/tensor/tile_window.hpp
include/ck_tile/core/tensor/tile_window.hpp
+3
-2
No files found.
include/ck_tile/core/tensor/tile_window.hpp
View file @
9d6a3704
...
...
@@ -146,9 +146,10 @@ struct tile_window_with_static_distribution
// check if window_lengths is matching the shape of tile_distribution
static_assert
(
WindowLengths
::
size
()
==
TileDstr
::
NDimX
);
static_for
<
0
,
TileDstr
::
NDimX
,
1
>
{}([
&
](
auto
dim
)
{
if
constexpr
(
is_number_v
<
decltype
(
window_lengths
[
dim
])
>
)
if
constexpr
(
is_number_v
<
remove_cvref_t
<
decltype
(
window_lengths
[
dim
])
>
>
)
{
constexpr
index_t
window_length
=
decltype
(
window_lengths
[
dim
])
::
value
;
constexpr
index_t
window_length
=
remove_cvref_t
<
decltype
(
window_lengths
[
dim
])
>::
value
;
static_assert
(
window_length
==
TileDstr
::
get_lengths
()[
dim
]);
}
});
...
...
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