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
55f8e435
Commit
55f8e435
authored
Feb 02, 2019
by
Shucai Xiao
Browse files
code cleanup
parent
0272f393
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+1
-4
No files found.
src/onnx/onnx.cpp
View file @
55f8e435
...
@@ -771,17 +771,14 @@ struct onnx_parser
...
@@ -771,17 +771,14 @@ struct onnx_parser
args
.
insert
(
args
.
end
(),
(
6
-
args
.
size
()),
ins
);
args
.
insert
(
args
.
end
(),
(
6
-
args
.
size
()),
ins
);
}
}
std
::
vector
<
instruction_ref
>
result
;
// first output for the concatenation of hidden states
// first output for the concatenation of hidden states
auto
hidden_states
=
prog
.
add_instruction
(
op
::
rnn
{
hidden_size
,
vec_actv_funcs
,
dirct
,
clip
},
auto
hidden_states
=
prog
.
add_instruction
(
op
::
rnn
{
hidden_size
,
vec_actv_funcs
,
dirct
,
clip
},
std
::
move
(
args
));
std
::
move
(
args
));
result
.
push_back
(
hidden_states
);
// second output for the last hidden state
// second output for the last hidden state
auto
last_output
=
prog
.
add_instruction
(
op
::
rnn_last_output
{},
hidden_states
);
auto
last_output
=
prog
.
add_instruction
(
op
::
rnn_last_output
{},
hidden_states
);
result
.
push_back
(
last_output
);
return
result
;
return
{
hidden_states
,
last_output
}
;
}
}
void
parse_from
(
std
::
istream
&
is
)
void
parse_from
(
std
::
istream
&
is
)
...
...
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