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
MIGraphX
Commits
2248dea9
"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "90665ffd90957ee7be18ba32b2dd75f03a02deb6"
Commit
2248dea9
authored
Aug 15, 2019
by
Paul
Browse files
Fix tidy warnings
parent
9e865197
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/targets/cpu/lowering.cpp
src/targets/cpu/lowering.cpp
+4
-4
No files found.
src/targets/cpu/lowering.cpp
View file @
2248dea9
...
@@ -245,17 +245,17 @@ struct cpu_im2col
...
@@ -245,17 +245,17 @@ struct cpu_im2col
const
std
::
size_t
&
stride_h
=
op
.
stride
[
0
];
const
std
::
size_t
&
stride_h
=
op
.
stride
[
0
];
const
std
::
size_t
&
stride_w
=
op
.
stride
[
1
];
const
std
::
size_t
&
stride_w
=
op
.
stride
[
1
];
long
kdiv2_h
=
kernel_h
/
2
;
long
kdiv2_h
=
long
(
kernel_h
)
/
2
;
long
kdiv2_w
=
kernel_w
/
2
;
long
kdiv2_w
=
long
(
kernel_w
)
/
2
;
// calculate output sizes
// calculate output sizes
const
std
::
size_t
col_height
=
(
height
-
kernel_h
+
2
*
pad_h
)
/
stride_h
+
1
;
const
std
::
size_t
col_height
=
(
height
-
kernel_h
+
2
*
pad_h
)
/
stride_h
+
1
;
const
std
::
size_t
col_width
=
(
width
-
kernel_w
+
2
*
pad_w
)
/
stride_w
+
1
;
const
std
::
size_t
col_width
=
(
width
-
kernel_w
+
2
*
pad_w
)
/
stride_w
+
1
;
// account for padding for the starting position of the input pixels
// account for padding for the starting position of the input pixels
long
iinput
=
kdiv2_h
-
pad_h
;
long
iinput
=
kdiv2_h
-
long
(
pad_h
)
;
// loop over output pixels (ioutput, joutput)
// loop over output pixels (ioutput, joutput)
for
(
std
::
size_t
ioutput
=
0
;
ioutput
<
col_height
;
ioutput
++
,
iinput
+=
stride_h
)
for
(
std
::
size_t
ioutput
=
0
;
ioutput
<
col_height
;
ioutput
++
,
iinput
+=
stride_h
)
{
{
long
jinput
=
kdiv2_w
-
pad_w
;
long
jinput
=
kdiv2_w
-
long
(
pad_w
)
;
for
(
std
::
size_t
joutput
=
0
;
joutput
<
col_width
;
joutput
++
,
jinput
+=
stride_w
)
for
(
std
::
size_t
joutput
=
0
;
joutput
<
col_width
;
joutput
++
,
jinput
+=
stride_w
)
{
{
// compute linear index for output
// compute linear index for output
...
...
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