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
bb0c1e36
Commit
bb0c1e36
authored
Jul 05, 2019
by
Shucai Xiao
Browse files
clang format
parent
32815c2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+5
-5
No files found.
src/onnx/onnx.cpp
View file @
bb0c1e36
...
@@ -546,7 +546,7 @@ struct onnx_parser
...
@@ -546,7 +546,7 @@ struct onnx_parser
{
{
literal
v
=
parse_value
(
attributes
.
at
(
"value"
));
literal
v
=
parse_value
(
attributes
.
at
(
"value"
));
// return empty literal
// return empty literal
if
(
v
.
get_shape
().
elements
()
==
0
)
if
(
v
.
get_shape
().
elements
()
==
0
)
{
{
return
prog
.
add_literal
(
literal
{});
return
prog
.
add_literal
(
literal
{});
}
}
...
@@ -938,7 +938,7 @@ struct onnx_parser
...
@@ -938,7 +938,7 @@ struct onnx_parser
{
{
migraphx
::
shape
s
;
migraphx
::
shape
s
;
// empty input tensor, output is a scalar
// empty input tensor, output is a scalar
if
(
args
[
0
]
->
get_shape
().
elements
()
==
0
)
if
(
args
[
0
]
->
get_shape
().
elements
()
==
0
)
{
{
s
=
migraphx
::
shape
{
type
,
{
1
},
{
0
}};
s
=
migraphx
::
shape
{
type
,
{
1
},
{
0
}};
}
}
...
@@ -972,7 +972,7 @@ struct onnx_parser
...
@@ -972,7 +972,7 @@ struct onnx_parser
{
{
auto
in_lens
=
args
[
0
]
->
get_shape
().
lens
();
auto
in_lens
=
args
[
0
]
->
get_shape
().
lens
();
migraphx
::
argument
arg_s
=
args
[
1
]
->
eval
();
migraphx
::
argument
arg_s
=
args
[
1
]
->
eval
();
if
(
arg_s
.
empty
())
if
(
arg_s
.
empty
())
{
{
MIGRAPHX_THROW
(
"Parse Expand: cannot handle dynamic shape as input"
);
MIGRAPHX_THROW
(
"Parse Expand: cannot handle dynamic shape as input"
);
}
}
...
...
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