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
f3b3a61c
Commit
f3b3a61c
authored
Sep 12, 2022
by
Po-Yen, Chen
Browse files
Add check for the input tensor type's byte-size
parent
b80b34f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
example/36_permute/run_permute_example.inc
example/36_permute/run_permute_example.inc
+2
-1
No files found.
example/36_permute/run_permute_example.inc
View file @
f3b3a61c
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
bool
run_permute
(
const
ExecutionConfig
&
config
,
const
Problem
&
problem
)
bool
run_permute
(
const
ExecutionConfig
&
config
,
const
Problem
&
problem
)
{
{
#if 1 < NUM_ELEMS_IN_BUNDLE
#if 1 < NUM_ELEMS_IN_BUNDLE
static_assert
(
std
::
is_same_v
<
ADataType
,
BDataType
>
&&
(
sizeof
(
ADataType
)
%
NUM_ELEMS_IN_BUNDLE
==
0
));
static_assert
(
std
::
is_same_v
<
ADataType
,
BDataType
>
&&
(
sizeof
(
ADataType
)
%
NUM_ELEMS_IN_BUNDLE
==
0
));
#endif
#endif
using
std
::
begin
,
std
::
end
;
using
std
::
begin
,
std
::
end
;
...
...
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