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
e3bd7f14
Commit
e3bd7f14
authored
Feb 01, 2019
by
Shucai Xiao
Browse files
clang format.
parent
83dbf407
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
17 deletions
+20
-17
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+4
-4
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+3
-3
test/cpu_ops_test.cpp
test/cpu_ops_test.cpp
+6
-6
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+1
-1
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+6
-3
No files found.
src/onnx/onnx.cpp
View file @
e3bd7f14
...
...
@@ -765,7 +765,7 @@ struct onnx_parser
// if the number of arguments is less than 6, append
// undefined operator to have 6 arguments
if
(
args
.
size
()
<
6
)
if
(
args
.
size
()
<
6
)
{
auto
ins
=
prog
.
add_instruction
(
op
::
undefined
{});
args
.
insert
(
args
.
end
(),
(
6
-
args
.
size
()),
ins
);
...
...
@@ -830,7 +830,7 @@ struct onnx_parser
}
}
void
parse_undefined
(
const
std
::
string
&
name
)
void
parse_undefined
(
const
std
::
string
&
name
)
{
auto
ins
=
prog
.
add_instruction
(
op
::
undefined
{});
instructions
[
name
]
=
ins
;
...
...
@@ -851,7 +851,7 @@ struct onnx_parser
assert
(
name
!=
input
);
this
->
parse_node
(
input
);
}
else
if
(
input
.
empty
())
else
if
(
input
.
empty
())
{
this
->
parse_undefined
(
input
);
}
...
...
src/rewrite_rnn.cpp
View file @
e3bd7f14
test/cpu_ops_test.cpp
View file @
e3bd7f14
test/gpu/miopen.cpp
View file @
e3bd7f14
test/onnx/onnx_test.cpp
View file @
e3bd7f14
...
...
@@ -560,7 +560,10 @@ TEST_CASE(rnn_test)
clip
},
seq
,
w
,
r
,
und
,
und
,
und
);
r
,
und
,
und
,
und
);
p
.
add_instruction
(
migraphx
::
op
::
rnn_last_output
{},
out_hs
);
auto
prog
=
migraphx
::
parse_onnx
(
"onnx_rnn_3args.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