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
1a0abc65
Commit
1a0abc65
authored
Oct 23, 2018
by
Scott Thornton
Browse files
enabled concat onnx parsing
parent
7255bc66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/onnx/onnx.cpp
src/onnx/onnx.cpp
+8
-8
No files found.
src/onnx/onnx.cpp
View file @
1a0abc65
...
@@ -69,7 +69,7 @@ struct onnx_parser
...
@@ -69,7 +69,7 @@ struct onnx_parser
add_mem_op
(
"Squeeze"
,
&
onnx_parser
::
parse_squeeze
);
add_mem_op
(
"Squeeze"
,
&
onnx_parser
::
parse_squeeze
);
add_mem_op
(
"Unsqueeze"
,
&
onnx_parser
::
parse_unsqueeze
);
add_mem_op
(
"Unsqueeze"
,
&
onnx_parser
::
parse_unsqueeze
);
add_mem_op
(
"Slice"
,
&
onnx_parser
::
parse_slice
);
add_mem_op
(
"Slice"
,
&
onnx_parser
::
parse_slice
);
//
add_mem_op("Concat", &onnx_parser::parse_concat);
add_mem_op
(
"Concat"
,
&
onnx_parser
::
parse_concat
);
}
}
template
<
class
F
>
template
<
class
F
>
...
@@ -209,13 +209,13 @@ struct onnx_parser
...
@@ -209,13 +209,13 @@ struct onnx_parser
return
prog
.
add_instruction
(
op
,
args
[
0
]);
return
prog
.
add_instruction
(
op
,
args
[
0
]);
}
}
//
instruction_ref
instruction_ref
//
parse_concat(const std::string&, attribute_map attributes, std::vector<instruction_ref> args)
parse_concat
(
const
std
::
string
&
,
attribute_map
attributes
,
std
::
vector
<
instruction_ref
>
args
)
//
{
{
//
literal
axis = parse_value(attributes.at("axis")).at<int>();
std
::
size_t
axis
=
parse_value
(
attributes
.
at
(
"axis"
)).
at
<
int
>
();
//
op::concat op{axis};
op
::
concat
op
{
axis
};
//
return prog.add_instruction(op, std::move(args));
return
prog
.
add_instruction
(
op
,
std
::
move
(
args
));
//
}
}
instruction_ref
instruction_ref
parse_slice
(
const
std
::
string
&
,
attribute_map
attributes
,
std
::
vector
<
instruction_ref
>
args
)
parse_slice
(
const
std
::
string
&
,
attribute_map
attributes
,
std
::
vector
<
instruction_ref
>
args
)
...
...
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