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
c63d2dd3
Commit
c63d2dd3
authored
Jun 05, 2019
by
Shucai Xiao
Browse files
add python interface for the capture_argument function.
parent
58ff9509
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/py/migraphx_py.cpp
src/py/migraphx_py.cpp
+4
-0
No files found.
src/py/migraphx_py.cpp
View file @
c63d2dd3
...
@@ -193,6 +193,10 @@ PYBIND11_MODULE(migraphx, m)
...
@@ -193,6 +193,10 @@ PYBIND11_MODULE(migraphx, m)
migraphx
::
quantize_int8
(
p
,
ins_names
,
quant_params
);
migraphx
::
quantize_int8
(
p
,
ins_names
,
quant_params
);
});
});
m
.
def
(
"capture_arguments"
,
[](
migraphx
::
program
&
p
,
const
std
::
vector
<
std
::
string
>&
ins_names
)
{
migraphx
::
capture_arguments
(
p
,
ins_names
);
});
#ifdef HAVE_GPU
#ifdef HAVE_GPU
m
.
def
(
"allocate_gpu"
,
&
migraphx
::
gpu
::
allocate_gpu
,
py
::
arg
(
"s"
),
py
::
arg
(
"host"
)
=
false
);
m
.
def
(
"allocate_gpu"
,
&
migraphx
::
gpu
::
allocate_gpu
,
py
::
arg
(
"s"
),
py
::
arg
(
"host"
)
=
false
);
m
.
def
(
"to_gpu"
,
&
migraphx
::
gpu
::
to_gpu
,
py
::
arg
(
"arg"
),
py
::
arg
(
"host"
)
=
false
);
m
.
def
(
"to_gpu"
,
&
migraphx
::
gpu
::
to_gpu
,
py
::
arg
(
"arg"
),
py
::
arg
(
"host"
)
=
false
);
...
...
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