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
87c7888e
Commit
87c7888e
authored
Nov 30, 2023
by
Chao Liu
Browse files
fix bug
parent
13542e66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
include/ck/tensor_description/macro_func_tensor_adaptor_from_encoding.hpp
...r_description/macro_func_tensor_adaptor_from_encoding.hpp
+4
-2
include/ck/utility/map.hpp
include/ck/utility/map.hpp
+1
-1
No files found.
include/ck/tensor_description/macro_func_tensor_adaptor_from_encoding.hpp
View file @
87c7888e
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
name == IndexTransformEnum::Pad || \
name == IndexTransformEnum::Pad || \
name == IndexTransformEnum::Embed || \
name == IndexTransformEnum::Embed || \
name == IndexTransformEnum::Merge || \
name == IndexTransformEnum::Merge || \
name == IndexTransformEnum::UnMerge, \
name == IndexTransformEnum::UnMerge || \
name == IndexTransformEnum::Replicate, \
""); \
""); \
\
\
if constexpr(name == IndexTransformEnum::PassThrough) \
if constexpr(name == IndexTransformEnum::PassThrough) \
...
@@ -164,7 +165,8 @@
...
@@ -164,7 +165,8 @@
name == IndexTransformEnum::Pad || \
name == IndexTransformEnum::Pad || \
name == IndexTransformEnum::Embed || \
name == IndexTransformEnum::Embed || \
name == IndexTransformEnum::Merge || \
name == IndexTransformEnum::Merge || \
name == IndexTransformEnum::UnMerge, \
name == IndexTransformEnum::UnMerge || \
name == IndexTransformEnum::Replicate, \
""); \
""); \
\
\
if constexpr(name == IndexTransformEnum::PassThrough) \
if constexpr(name == IndexTransformEnum::PassThrough) \
...
...
include/ck/utility/map.hpp
View file @
87c7888e
...
@@ -100,7 +100,7 @@ struct Map
...
@@ -100,7 +100,7 @@ struct Map
const
auto
it
=
Find
(
key
);
const
auto
it
=
Find
(
key
);
// FIXME
// FIXME
assert
(
pos
<
Size
());
assert
(
it
.
pos
_
<
Size
());
return
impl_
[
it
.
pos_
].
template
At
<
1
>();
return
impl_
[
it
.
pos_
].
template
At
<
1
>();
}
}
...
...
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