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
a41132b5
Commit
a41132b5
authored
Sep 12, 2022
by
Po-Yen, Chen
Browse files
Avoid create necessary objects
parent
f629397b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
example/36_permute/run_permute_example.inc
example/36_permute/run_permute_example.inc
+7
-9
No files found.
example/36_permute/run_permute_example.inc
View file @
a41132b5
...
...
@@ -102,12 +102,10 @@ bool run_permute(const ExecutionConfig& config, const Problem& problem)
return
false
;
}
std
::
vector
<
DataType
>
extended_b
(
reinterpret_cast
<
DataType
*>
(
data
(
b
.
mData
)),
reinterpret_cast
<
DataType
*>
(
data
(
b
.
mData
))
+
b
.
mDesc
.
GetElementSpaceSize
()
*
NUM_ELEMS_IN_BUNDLE
);
return
ck
::
utils
::
check_err
(
extended_b
,
extended_host_b
.
mData
,
return
ck
::
utils
::
check_err
(
ck
::
span
<
const
DataType
>
{
reinterpret_cast
<
DataType
*>
(
data
(
b
.
mData
)),
b
.
mDesc
.
GetElementSpaceSize
()
*
NUM_ELEMS_IN_BUNDLE
},
ck
::
span
<
const
DataType
>
{
extended_host_b
.
mData
},
"Error: incorrect results in output tensor"
,
1
e
-
10
,
1
e
-
10
);
...
...
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