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
Commits
59fef16f
Commit
59fef16f
authored
Sep 08, 2022
by
Po-Yen, Chen
Browse files
Add comment
parent
360383bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
+1
-0
No files found.
include/ck/tensor_operation/gpu/grid/gridwise_permute.hpp
View file @
59fef16f
...
@@ -169,6 +169,7 @@ struct GridwisePermute
...
@@ -169,6 +169,7 @@ struct GridwisePermute
{
{
constexpr
index_t
NumDim
=
InGridDesc
::
GetNumOfDimension
();
constexpr
index_t
NumDim
=
InGridDesc
::
GetNumOfDimension
();
// check if we only swap last 2 dimensions
bool
valid
=
true
;
bool
valid
=
true
;
static_for
<
0
,
NumDim
-
2
,
1
>
{}([
&
](
auto
I
)
{
static_for
<
0
,
NumDim
-
2
,
1
>
{}([
&
](
auto
I
)
{
if
(
valid
&&
in_grid_desc
.
GetLength
(
I
)
!=
out_grid_desc
.
GetLength
(
I
))
if
(
valid
&&
in_grid_desc
.
GetLength
(
I
)
!=
out_grid_desc
.
GetLength
(
I
))
...
...
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