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
2ac1a6b9
Commit
2ac1a6b9
authored
Sep 14, 2022
by
Po-Yen, Chen
Browse files
Move 'using' directive to proper code position
parent
e81f54bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
example/37_permute/run_permute_bundle_example.inc
example/37_permute/run_permute_bundle_example.inc
+1
-1
No files found.
example/37_permute/run_permute_bundle_example.inc
View file @
2ac1a6b9
...
...
@@ -16,12 +16,12 @@ bool run_permute_bundle(const Problem& problem)
Tensor
<
BundleType
>
output_bundle_tensor
(
output_bundle_shape
);
// initialize tensor by assigning DataType values
using
std
::
data
;
ck
::
utils
::
FillUniformDistribution
<
DataType
>
{
-
1.
f
,
1.
f
}(
input_bundle_tensor
.
AsSpan
<
DataType
>
());
DeviceMem
input_device_buf
(
input_bundle_tensor
.
GetElementSpaceSizeInBytes
());
DeviceMem
output_device_buf
(
output_bundle_tensor
.
GetElementSpaceSizeInBytes
());
using
std
::
data
;
input_device_buf
.
ToDevice
(
data
(
input_bundle_tensor
));
const
void
*
input_bundle_data
=
input_device_buf
.
GetDeviceBuffer
();
...
...
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