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
2433dd46
Unverified
Commit
2433dd46
authored
Oct 04, 2019
by
Haichen Shen
Committed by
GitHub
Oct 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] Fix target host for vm compiler (#4057)
* fix * tweak
parent
7d71dd8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/tvm/relay/backend/vm.py
+5
-0
No files found.
python/tvm/relay/backend/vm.py
View file @
2433dd46
...
@@ -179,6 +179,11 @@ class VMCompiler(object):
...
@@ -179,6 +179,11 @@ class VMCompiler(object):
target
=
_update_target
(
target
)
target
=
_update_target
(
target
)
target_host
=
None
if
target_host
==
""
else
target_host
target_host
=
None
if
target_host
==
""
else
target_host
if
not
target_host
:
if
not
target_host
:
for
device_type
,
tgt
in
target
.
items
():
if
device_type
.
value
==
tvm
.
nd
.
cpu
(
0
)
.
device_type
:
target_host
=
tgt
break
if
not
target_host
:
target_host
=
"llvm"
if
tvm
.
module
.
enabled
(
"llvm"
)
else
"stackvm"
target_host
=
"llvm"
if
tvm
.
module
.
enabled
(
"llvm"
)
else
"stackvm"
target_host
=
tvm
.
target
.
create
(
target_host
)
target_host
=
tvm
.
target
.
create
(
target_host
)
self
.
_compile
(
mod
,
target
,
target_host
)
self
.
_compile
(
mod
,
target
,
target_host
)
...
...
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