Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
e920c099
Commit
e920c099
authored
Oct 03, 2018
by
Lianmin Zheng
Committed by
Tianqi Chen
Oct 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AUTOTVM] Support multiple targets load in tophub (#1803)
parent
ad4c142b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
python/tvm/autotvm/tophub.py
+8
-5
tutorials/nnvm/deploy_ssd.py
+10
-2
No files found.
python/tvm/autotvm/tophub.py
View file @
e920c099
...
@@ -51,22 +51,25 @@ def context(target, extra_files=None):
...
@@ -51,22 +51,25 @@ def context(target, extra_files=None):
Parameters
Parameters
----------
----------
target: Target
target: Target
or List of Target
The compilation target
The compilation target
extra_files: list of str, optional
extra_files: list of str, optional
Extra log files to load
Extra log files to load
"""
"""
best_context
=
ApplyHistoryBest
([])
best_context
=
ApplyHistoryBest
([])
if
isinstance
(
target
,
str
):
targets
=
target
if
isinstance
(
target
,
(
list
,
tuple
))
else
[
target
]
target
=
_target
.
create
(
target
)
for
tgt
in
targets
:
if
isinstance
(
tgt
,
str
):
tgt
=
_target
.
create
(
tgt
)
possible_names
=
[]
possible_names
=
[]
for
opt
in
targe
t
.
options
:
for
opt
in
tg
t
.
options
:
if
opt
.
startswith
(
"-device"
):
if
opt
.
startswith
(
"-device"
):
device
=
_alias
(
opt
[
8
:])
device
=
_alias
(
opt
[
8
:])
possible_names
.
append
(
device
)
possible_names
.
append
(
device
)
possible_names
.
append
(
targe
t
.
target_name
)
possible_names
.
append
(
tg
t
.
target_name
)
all_packages
=
list
(
PACKAGE_VERSION
.
keys
())
all_packages
=
list
(
PACKAGE_VERSION
.
keys
())
for
name
in
possible_names
:
for
name
in
possible_names
:
...
...
tutorials/nnvm/deploy_ssd.py
View file @
e920c099
...
@@ -22,12 +22,20 @@ from mxnet.model import load_checkpoint
...
@@ -22,12 +22,20 @@ from mxnet.model import load_checkpoint
######################################################################
######################################################################
# Set the parameters here
# Preliminary and Set parameters
# -----------------------
# ------------------------------
# We should build TVM with sort support, in TVM root directory
#
# .. code-block:: bash
#
# echo "set(USE_SORT ON)" > config.mk
# make -j8
#
# .. note::
# .. note::
#
#
# Currently we support compiling SSD on CPU only.
# Currently we support compiling SSD on CPU only.
# GPU support is in progress.
# GPU support is in progress.
#
model_name
=
"ssd_resnet50_512"
model_name
=
"ssd_resnet50_512"
model_file
=
"
%
s.zip"
%
model_name
model_file
=
"
%
s.zip"
%
model_name
...
...
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