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
81952816
"include/vscode:/vscode.git/clone" did not exist on "ceeca94ac24b9276f662711a6827a6a49200f246"
Commit
81952816
authored
Jul 03, 2019
by
Shucai Xiao
Browse files
clang format
parent
08b3f215
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+2
-2
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+1
-1
No files found.
src/onnx/onnx.cpp
View file @
81952816
...
@@ -1323,8 +1323,8 @@ struct onnx_parser
...
@@ -1323,8 +1323,8 @@ struct onnx_parser
}
}
instruction_ref
parse_reduce_mean
(
const
std
::
string
&
,
instruction_ref
parse_reduce_mean
(
const
std
::
string
&
,
attribute_map
attributes
,
attribute_map
attributes
,
std
::
vector
<
instruction_ref
>
args
)
std
::
vector
<
instruction_ref
>
args
)
{
{
std
::
size_t
n_dim
=
args
.
front
()
->
get_shape
().
lens
().
size
();
std
::
size_t
n_dim
=
args
.
front
()
->
get_shape
().
lens
().
size
();
...
...
test/onnx/onnx_test.cpp
View file @
81952816
...
@@ -862,7 +862,7 @@ TEST_CASE(reducemean_test1)
...
@@ -862,7 +862,7 @@ TEST_CASE(reducemean_test1)
TEST_CASE
(
reducemean_test2
)
TEST_CASE
(
reducemean_test2
)
{
{
migraphx
::
program
p
;
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
,
4
,
5
,
6
}});
auto
l0
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
,
4
,
5
,
6
}});
p
.
add_instruction
(
migraphx
::
op
::
reduce_mean
{{
2
}},
l0
);
p
.
add_instruction
(
migraphx
::
op
::
reduce_mean
{{
2
}},
l0
);
auto
prog
=
migraphx
::
parse_onnx
(
"reducemean_test2.onnx"
);
auto
prog
=
migraphx
::
parse_onnx
(
"reducemean_test2.onnx"
);
...
...
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