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
4c59b8fd
"docs/vscode:/vscode.git/clone" did not exist on "7aa4461209250bba4cfafed79ee0c44e13c7e1e3"
Commit
4c59b8fd
authored
Jan 24, 2019
by
Shucai Xiao
Browse files
clang format
parent
904a913b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/rewrite_gru.cpp
src/rewrite_gru.cpp
+4
-3
No files found.
src/rewrite_gru.cpp
View file @
4c59b8fd
...
@@ -173,7 +173,8 @@ std::vector<instruction_ref> rewrite_gru::gru_oper(bool is_forward,
...
@@ -173,7 +173,8 @@ std::vector<instruction_ref> rewrite_gru::gru_oper(bool is_forward,
long
hs
=
static_cast
<
long
>
(
r
->
get_shape
().
lens
()[
1
]);
long
hs
=
static_cast
<
long
>
(
r
->
get_shape
().
lens
()[
1
]);
long
seq_index
=
is_forward
?
0
:
seq_len
-
1
;
long
seq_index
=
is_forward
?
0
:
seq_len
-
1
;
migraphx
::
shape
s
(
input
->
get_shape
().
type
(),
{
input
->
get_shape
().
lens
()[
1
],
static_cast
<
std
::
size_t
>
(
hs
)});
migraphx
::
shape
s
(
input
->
get_shape
().
type
(),
{
input
->
get_shape
().
lens
()[
1
],
static_cast
<
std
::
size_t
>
(
hs
)});
std
::
vector
<
int
>
data
(
s
.
elements
(),
1
);
std
::
vector
<
int
>
data
(
s
.
elements
(),
1
);
auto
l1
=
prog
.
add_literal
(
migraphx
::
literal
{
s
,
data
});
auto
l1
=
prog
.
add_literal
(
migraphx
::
literal
{
s
,
data
});
...
...
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