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
1f0167bb
Commit
1f0167bb
authored
May 24, 2019
by
Paul
Browse files
Fix parse concat
parent
af29fc68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/tf/tf.cpp
src/tf/tf.cpp
+3
-3
No files found.
src/tf/tf.cpp
View file @
1f0167bb
...
@@ -303,8 +303,8 @@ struct tf_parser
...
@@ -303,8 +303,8 @@ struct tf_parser
size_t
axis
=
args
[
axis_idx
]
->
eval
().
at
<
int64_t
>
();
size_t
axis
=
args
[
axis_idx
]
->
eval
().
at
<
int64_t
>
();
op
::
concat
op
{
axis
};
op
::
concat
op
{
axis
};
// return only first N arguments (assuming last index is the axis value)
// return only first N arguments (assuming last index is the axis value)
return
to_nhwc
(
prog
.
add_instruction
(
return
prog
.
add_instruction
(
op
,
std
::
vector
<
instruction_ref
>
(
args
.
begin
(),
args
.
begin
()
+
args
.
size
()
-
1
))
)
;
op
,
std
::
vector
<
instruction_ref
>
(
args
.
begin
(),
args
.
begin
()
+
args
.
size
()
-
1
));
}
}
instruction_ref
parse_constant
(
const
std
::
string
&
,
instruction_ref
parse_constant
(
const
std
::
string
&
,
...
@@ -660,7 +660,7 @@ struct tf_parser
...
@@ -660,7 +660,7 @@ struct tf_parser
reorder_data
(
dims
);
reorder_data
(
dims
);
}
}
shape
s
=
shape
{
shape_type
,
dims
};
shape
s
=
shape
{
shape_type
,
dims
};
instructions
[
name
]
=
prog
.
add_parameter
(
name
,
s
);
instructions
[
name
]
=
to_nhwc
(
prog
.
add_parameter
(
name
,
s
)
)
;
}
}
for
(
auto
&&
p
:
nodes
)
for
(
auto
&&
p
:
nodes
)
{
{
...
...
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