Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
23ef67a7
Commit
23ef67a7
authored
Jul 25, 2018
by
Scott Thornton
Browse files
Merge branch 'master' into onnx_fixes
parents
7e23d5c4
68d69739
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
tools/include/target.hpp
tools/include/target.hpp
+26
-1
tools/te.py
tools/te.py
+4
-1
No files found.
tools/include/target.hpp
View file @
23ef67a7
...
...
@@ -12,7 +12,30 @@
namespace
migraph
{
struct
program
;
#ifdef DOXYGEN
/// An interface for a compilation target
struct
target
{
/// A unique name used to identify the target
std
::
string
name
()
const
;
/// The transformation passes to be run
/**
* @brief The transformation pass to be run during compilation.
* @details [long description]
*
* @param ctx This is the target-dependent context that is created by `get_context`
* @return The passes to be ran
*/
std
::
vector
<
pass
>
get_passes
(
context
&
ctx
)
const
;
/**
* @brief Construct a context for the target.
* @return The context to be used during compilation and execution.
*/
context
get_context
()
const
;
};
#else
<%
interface
(
'
target
'
,
...
...
@@ -22,6 +45,8 @@ interface('target',
)
%>
#endif
}
// namespace migraph
#endif
tools/te.py
View file @
23ef67a7
...
...
@@ -239,7 +239,8 @@ def convert_member(d, struct_name):
'member_const'
:
''
,
'friend'
:
''
,
'this'
:
'(*this)'
,
'using'
:
''
'using'
:
''
,
'brief'
:
''
}
args
=
[]
params
=
[]
...
...
@@ -266,6 +267,8 @@ def convert_member(d, struct_name):
member
[
'default'
]
=
t
elif
x
==
'using'
:
member
[
'using'
]
=
'using {};'
.
format
(
d
[
name
][
'using'
])
elif
x
==
'__brief__'
:
member
[
'doc'
]
=
'/// '
+
t
elif
x
.
startswith
(
'__'
)
and
x
.
endswith
(
'__'
):
continue
else
:
...
...
Prev
1
2
3
Next
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