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
e81f54bb
Commit
e81f54bb
authored
Sep 14, 2022
by
Po-Yen, Chen
Browse files
Remove no-longer-used 'using' directives
parent
0fa35b29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
example/37_permute/run_permute_bundle_example.inc
example/37_permute/run_permute_bundle_example.inc
+1
-3
example/37_permute/run_permute_element_example.inc
example/37_permute/run_permute_element_example.inc
+0
-2
No files found.
example/37_permute/run_permute_bundle_example.inc
View file @
e81f54bb
...
@@ -7,8 +7,6 @@ bool run_permute_bundle(const Problem& problem)
...
@@ -7,8 +7,6 @@ bool run_permute_bundle(const Problem& problem)
{
{
constexpr
std
::
size_t
NumElemsInBundle
=
sizeof
(
BundleType
)
/
sizeof
(
DataType
);
constexpr
std
::
size_t
NumElemsInBundle
=
sizeof
(
BundleType
)
/
sizeof
(
DataType
);
using
std
::
begin
,
std
::
end
;
const
auto
&
input_bundle_shape
=
problem
.
shape
;
const
auto
&
input_bundle_shape
=
problem
.
shape
;
const
auto
&
input_bundle_axes
=
problem
.
axes
;
const
auto
&
input_bundle_axes
=
problem
.
axes
;
...
@@ -18,7 +16,7 @@ bool run_permute_bundle(const Problem& problem)
...
@@ -18,7 +16,7 @@ bool run_permute_bundle(const Problem& problem)
Tensor
<
BundleType
>
output_bundle_tensor
(
output_bundle_shape
);
Tensor
<
BundleType
>
output_bundle_tensor
(
output_bundle_shape
);
// initialize tensor by assigning DataType values
// initialize tensor by assigning DataType values
using
std
::
data
,
std
::
size
;
using
std
::
data
;
ck
::
utils
::
FillUniformDistribution
<
DataType
>
{
-
1.
f
,
1.
f
}(
input_bundle_tensor
.
AsSpan
<
DataType
>
());
ck
::
utils
::
FillUniformDistribution
<
DataType
>
{
-
1.
f
,
1.
f
}(
input_bundle_tensor
.
AsSpan
<
DataType
>
());
DeviceMem
input_device_buf
(
input_bundle_tensor
.
GetElementSpaceSizeInBytes
());
DeviceMem
input_device_buf
(
input_bundle_tensor
.
GetElementSpaceSizeInBytes
());
...
...
example/37_permute/run_permute_element_example.inc
View file @
e81f54bb
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
bool
run_permute_element
(
const
Problem
&
problem
)
bool
run_permute_element
(
const
Problem
&
problem
)
{
{
using
std
::
begin
,
std
::
end
;
const
auto
&
input_shape
=
problem
.
shape
;
const
auto
&
input_shape
=
problem
.
shape
;
const
auto
&
input_axes
=
problem
.
axes
;
const
auto
&
input_axes
=
problem
.
axes
;
...
...
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