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
406b5f76
Unverified
Commit
406b5f76
authored
Feb 18, 2020
by
Andrew
Committed by
GitHub
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tvm.target.generic_func runtime detection (#4910)
parent
d2ae8c95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
python/tvm/target/generic_func.py
+3
-3
No files found.
python/tvm/target/generic_func.py
View file @
406b5f76
...
...
@@ -20,10 +20,10 @@ import tvm._ffi
try
:
from
decorator
import
decorate
except
ImportError
as
err_msg
:
except
ImportError
:
# Allow decorator to be missing in runtime
if
_LIB_NAME
!=
"libtvm_runtime.so"
:
raise
err_msg
if
not
tvm
.
_ffi
.
base
.
_RUNTIME_ONLY
:
raise
from
tvm.runtime
import
Object
from
.
target
import
Target
...
...
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