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
c17d2d0b
Commit
c17d2d0b
authored
Feb 04, 2019
by
Shucai Xiao
Browse files
refine code.
parent
e41908ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/include/migraphx/operators.hpp
src/include/migraphx/operators.hpp
+1
-1
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+2
-2
No files found.
src/include/migraphx/operators.hpp
View file @
c17d2d0b
...
...
@@ -1190,7 +1190,7 @@ struct rnn_last_output
struct
undefined
{
std
::
string
name
()
const
{
return
"undefined"
;
}
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
shape
compute_shape
(
const
std
::
vector
<
shape
>
&
inputs
)
const
{
check_shapes
{
inputs
,
*
this
}.
has
(
0
);
return
{};
...
...
src/rewrite_rnn.cpp
View file @
c17d2d0b
...
...
@@ -272,7 +272,7 @@ std::vector<operation> rewrite_rnn::compute_actv_funcs(instruction_ref ins) cons
// algorithm in parse_rnn to make 2 actv functions
if
(
rnn_op
.
direction
==
op
::
rnn
::
bidirectional
)
{
if
(
rnn_op
.
actv_funcs
.
size
()
==
0
)
if
(
rnn_op
.
actv_funcs
.
empty
()
)
{
// default is tanh
return
{
op
::
tanh
{},
op
::
tanh
{}};
...
...
@@ -288,7 +288,7 @@ std::vector<operation> rewrite_rnn::compute_actv_funcs(instruction_ref ins) cons
}
else
{
if
(
rnn_op
.
actv_funcs
.
size
()
==
0
)
if
(
rnn_op
.
actv_funcs
.
empty
()
)
{
// default is tanh
return
{
op
::
tanh
{}};
...
...
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