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
68a2443a
"...resnet50_tensorflow.git" did not exist on "d577681028e5f6298776a8c55859bfaf40cd4391"
Commit
68a2443a
authored
Sep 14, 2022
by
Po-Yen, Chen
Browse files
Move long return type as tailing return type
parent
10b99e51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example/37_permute/run_permute_bundle_example.inc
example/37_permute/run_permute_bundle_example.inc
+2
-2
No files found.
example/37_permute/run_permute_bundle_example.inc
View file @
68a2443a
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
bool
run_permute_bundle
(
const
Problem
&
problem
)
bool
run_permute_bundle
(
const
Problem
&
problem
)
{
{
constexpr
std
::
size_t
NumElemsInBundle
=
sizeof
(
BundleType
)
/
sizeof
(
DataType
);
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
;
...
@@ -49,6 +47,8 @@ bool run_permute_bundle(const Problem& problem)
...
@@ -49,6 +47,8 @@ bool run_permute_bundle(const Problem& problem)
output_device_buf
.
FromDevice
(
data
(
output_bundle_tensor
));
output_device_buf
.
FromDevice
(
data
(
output_bundle_tensor
));
constexpr
std
::
size_t
NumElemsInBundle
=
sizeof
(
BundleType
)
/
sizeof
(
DataType
);
// extend tensor shape from [N, H, W] to [N, H, W, NumElemsInBundle]
// extend tensor shape from [N, H, W] to [N, H, W, NumElemsInBundle]
// axes from [0, 2, 1] to [0, 2, 1, 3]
// axes from [0, 2, 1] to [0, 2, 1, 3]
const
auto
input_shape
=
extend_shape
(
input_bundle_shape
,
NumElemsInBundle
);
const
auto
input_shape
=
extend_shape
(
input_bundle_shape
,
NumElemsInBundle
);
...
...
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