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
6e0a4d70
Commit
6e0a4d70
authored
May 15, 2018
by
Paul
Browse files
Use angle brackets to prevent formatting problems
parent
095c2a49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tools/include/operation.hpp
tools/include/operation.hpp
+2
-2
tools/te.py
tools/te.py
+2
-2
No files found.
tools/include/operation.hpp
View file @
6e0a4d70
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
namespace
rtg
{
namespace
rtg
{
{
%
<
%
interface
(
'
operation
'
,
interface
(
'
operation
'
,
virtual
(
'
name
'
,
returns
=
'
std
::
string
'
,
const
=
True
),
virtual
(
'
name
'
,
returns
=
'
std
::
string
'
,
const
=
True
),
virtual
(
'
compute_shape
'
,
returns
=
'
shape
'
,
input
=
'
std
::
vector
<
shape
>
'
,
const
=
True
),
virtual
(
'
compute_shape
'
,
returns
=
'
shape
'
,
input
=
'
std
::
vector
<
shape
>
'
,
const
=
True
),
virtual
(
'
compute
'
,
returns
=
'
argument
'
,
input
=
'
std
::
vector
<
argument
>
'
,
const
=
True
)
virtual
(
'
compute
'
,
returns
=
'
argument
'
,
input
=
'
std
::
vector
<
argument
>
'
,
const
=
True
)
)
)
%
}
%
>
}
// namespace rtg
}
// namespace rtg
...
...
tools/te.py
View file @
6e0a4d70
...
@@ -231,8 +231,8 @@ def interface(name, *members):
...
@@ -231,8 +231,8 @@ def interface(name, *members):
return
generate_form
(
name
,
members
)
return
generate_form
(
name
,
members
)
def
template_eval
(
template
,
**
kwargs
):
def
template_eval
(
template
,
**
kwargs
):
start
=
'
{
%'
start
=
'
<
%'
end
=
'%
}
'
end
=
'%
>
'
escaped
=
(
re
.
escape
(
start
),
re
.
escape
(
end
))
escaped
=
(
re
.
escape
(
start
),
re
.
escape
(
end
))
mark
=
re
.
compile
(
'%s(.*?)%s'
%
escaped
,
re
.
DOTALL
)
mark
=
re
.
compile
(
'%s(.*?)%s'
%
escaped
,
re
.
DOTALL
)
for
key
in
kwargs
:
for
key
in
kwargs
:
...
...
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