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
e59e3058
Commit
e59e3058
authored
May 02, 2018
by
Paul
Browse files
Fix impl issues
parent
8cd2c875
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
include/rtg/program.hpp
include/rtg/program.hpp
+3
-3
onnx/read_onnx.cpp
onnx/read_onnx.cpp
+4
-4
src/program.cpp
src/program.cpp
+3
-2
No files found.
include/rtg/program.hpp
View file @
e59e3058
...
@@ -15,9 +15,9 @@ struct program_impl;
...
@@ -15,9 +15,9 @@ struct program_impl;
struct
program
struct
program
{
{
program
();
;
program
();
program
(
program
&&
)
=
defaul
t
;
program
(
program
&&
)
noexcep
t
;
program
&
operator
=
(
program
&&
)
=
default
;
program
&
operator
=
(
program
&&
);
~
program
();
~
program
();
template
<
class
...
Ts
>
template
<
class
...
Ts
>
...
...
onnx/read_onnx.cpp
View file @
e59e3058
...
@@ -41,13 +41,14 @@ struct onnx_parser
...
@@ -41,13 +41,14 @@ struct onnx_parser
{
{
using
attribute_map
=
std
::
unordered_map
<
std
::
string
,
onnx
::
AttributeProto
>
;
using
attribute_map
=
std
::
unordered_map
<
std
::
string
,
onnx
::
AttributeProto
>
;
using
node_map
=
std
::
unordered_map
<
std
::
string
,
onnx
::
NodeProto
>
;
using
node_map
=
std
::
unordered_map
<
std
::
string
,
onnx
::
NodeProto
>
;
using
op_func
=
std
::
function
<
rtg
::
instruction
*
(
attribute_map
,
std
::
vector
<
rtg
::
instruction
*>
)
>
;
node_map
nodes
;
node_map
nodes
;
std
::
unordered_map
<
std
::
string
,
rtg
::
instruction
*>
instructions
;
std
::
unordered_map
<
std
::
string
,
rtg
::
instruction
*>
instructions
;
rtg
::
program
prog
=
std
::
make_shared
<
rtg
::
program
>
();
rtg
::
program
prog
=
rtg
::
program
();
std
::
unordered_map
<
std
::
unordered_map
<
std
::
string
,
std
::
string
,
std
::
function
<
rtg
::
instruction
*
(
attribute_map
,
std
::
vector
<
rtg
::
instruction
*>
)
>
>
op_func
>
ops
;
ops
;
onnx_parser
()
onnx_parser
()
...
@@ -305,8 +306,7 @@ int main(int argc, char const* argv[])
...
@@ -305,8 +306,7 @@ int main(int argc, char const* argv[])
}
}
catch
(...)
catch
(...)
{
{
if
(
parser
.
prog
)
parser
.
prog
.
print
();
parser
.
prog
.
print
();
throw
;
throw
;
}
}
parser
.
prog
.
print
();
parser
.
prog
.
print
();
...
...
src/program.cpp
View file @
e59e3058
...
@@ -16,8 +16,9 @@ program::program()
...
@@ -16,8 +16,9 @@ program::program()
:
impl
(
std
::
make_unique
<
program_impl
>
())
:
impl
(
std
::
make_unique
<
program_impl
>
())
{}
{}
program
::~
program
()
program
::
program
(
program
&&
)
noexcept
=
default
;
{}
program
&
program
::
operator
=
(
program
&&
)
=
default
;
program
::~
program
()
=
default
;
instruction
*
program
::
add_instruction
(
operation
op
,
std
::
vector
<
instruction
*>
args
)
instruction
*
program
::
add_instruction
(
operation
op
,
std
::
vector
<
instruction
*>
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