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
250a0243
Commit
250a0243
authored
Jan 25, 2019
by
Shucai Xiao
Browse files
clang format
parent
e81dc0e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+4
-4
src/rewrite_gru.cpp
src/rewrite_gru.cpp
+1
-1
No files found.
src/onnx/onnx.cpp
View file @
250a0243
...
@@ -748,15 +748,15 @@ struct onnx_parser
...
@@ -748,15 +748,15 @@ struct onnx_parser
// need 4 activation functions
// need 4 activation functions
if
(
dirct
==
op
::
gru
::
bidirectional
)
if
(
dirct
==
op
::
gru
::
bidirectional
)
{
{
// 4 activation functions are used in the bidirectional
// 4 activation functions are used in the bidirectional
// scenario. No spec is provided in onnx::operator. we
// scenario. No spec is provided in onnx::operator. we
// use the algorithm that: if 1 actv function is provides,
// use the algorithm that: if 1 actv function is provides,
// repeat 1 four times. If 2 actv functins are provides,
// repeat 1 four times. If 2 actv functins are provides,
// assume forward and reverse use the same pair of actv
// assume forward and reverse use the same pair of actv
// functions. For the case of 3 actv functions provided,
// functions. For the case of 3 actv functions provided,
// assume the 3rd one is repeated once and used by the
// assume the 3rd one is repeated once and used by the
// reverse direction.
// reverse direction.
// This may need change later
// This may need change later
if
(
vec_names
.
size
()
==
1
)
if
(
vec_names
.
size
()
==
1
)
{
{
vec_names
.
insert
(
vec_names
.
end
(),
3
,
vec_names
.
at
(
0
));
vec_names
.
insert
(
vec_names
.
end
(),
3
,
vec_names
.
at
(
0
));
...
...
src/rewrite_gru.cpp
View file @
250a0243
...
@@ -103,7 +103,7 @@ void rewrite_gru::apply(program& prog) const
...
@@ -103,7 +103,7 @@ void rewrite_gru::apply(program& prog) const
gru_op
.
actv_funcs
.
at
(
2
),
gru_op
.
actv_funcs
.
at
(
2
),
gru_op
.
actv_funcs
.
at
(
3
));
gru_op
.
actv_funcs
.
at
(
3
));
//auto final_output =
//
auto final_output =
// prog.insert_instruction(ins, op::concat{0}, ret_forward[1], ret_reverse[1]);
// prog.insert_instruction(ins, op::concat{0}, ret_forward[1], ret_reverse[1]);
// add the dimension of num_direction
// add the dimension of num_direction
...
...
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