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
120109d0
Commit
120109d0
authored
Oct 22, 2018
by
wsttiger
Browse files
Fixed CPPCHECK
parent
224cb7cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/targets/cpu/cpu_lowering.cpp
src/targets/cpu/cpu_lowering.cpp
+1
-1
test/fwd_conv_batchnorm_rewrite_test.cpp
test/fwd_conv_batchnorm_rewrite_test.cpp
+1
-1
No files found.
src/targets/cpu/cpu_lowering.cpp
View file @
120109d0
...
...
@@ -312,7 +312,7 @@ struct cpu_concat
auto
slice_shape
=
shape
{
output_shape
.
type
(),
input
.
get_shape
().
lens
(),
output_shape
.
strides
()};
auto
slice
=
make_view
(
slice_shape
,
output
.
data
()
+
coffsets
[
l
]);
for
(
std
::
size_t
i
=
0
;
i
<
nelements
;
i
++
)
for
(
std
::
size_t
i
=
0
;
i
<
nelements
;
i
++
)
// NOLINT
{
slice
[
i
]
=
input
[
i
];
}
...
...
test/fwd_conv_batchnorm_rewrite_test.cpp
View file @
120109d0
...
...
@@ -38,7 +38,7 @@ void fwd_conv_batchnorm_rewrite_test()
migraph
::
program
p
;
auto
x
=
p
.
add_literal
(
xs
,
xdata
);
auto
w
=
p
.
add_literal
(
ws
,
wdata
);
auto
conv
=
p
.
add_instruction
(
migraph
::
op
::
convolution
{{
0
,
0
},
{
1
,
1
},
{
1
,
1
}},
x
,
w
);
auto
conv
=
p
.
add_instruction
(
migraph
::
op
::
convolution
{{
{
0
,
0
}
}
,
{
{
1
,
1
}
}
,
{
{
1
,
1
}}
}
,
x
,
w
);
auto
scale
=
p
.
add_literal
(
migraph
::
literal
{
vars
,
{
3.0
f
}});
auto
bias
=
p
.
add_literal
(
migraph
::
literal
{
vars
,
{
8.1
f
}});
auto
mean
=
p
.
add_literal
(
migraph
::
literal
{
vars
,
{
4.0
f
}});
...
...
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