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
12d1ab5a
Commit
12d1ab5a
authored
Feb 20, 2018
by
Tianqi Chen
Committed by
GitHub
Feb 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RUNTIME] More reliable runtime only detection (#914)
* [RUNTIME] More reliable runtime only detection * fix lint
parent
6bf3a9d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
python/tvm/_ffi/base.py
+4
-0
python/tvm/build_module.py
+2
-2
No files found.
python/tvm/_ffi/base.py
View file @
12d1ab5a
...
...
@@ -41,6 +41,10 @@ def _load_lib():
__version__
=
libinfo
.
__version__
# library instance of nnvm
_LIB
,
_LIB_NAME
=
_load_lib
()
# Whether we are runtime only
_RUNTIME_ONLY
=
"runtime"
in
_LIB_NAME
# The FFI mode of TVM
_FFI_MODE
=
os
.
environ
.
get
(
"TVM_FFI"
,
"auto"
)
...
...
python/tvm/build_module.py
View file @
12d1ab5a
...
...
@@ -6,9 +6,9 @@ LoweredFunc and compiled Module.
from
__future__
import
absolute_import
as
_abs
import
warnings
import
types
import
os
from
._ffi.node
import
NodeBase
,
register_node
from
._ffi.base
import
_RUNTIME_ONLY
from
.
import
api
from
.
import
tensor
from
.
import
schedule
...
...
@@ -226,7 +226,7 @@ def build_config(**kwargs):
setattr
(
config
,
k
,
kwargs
[
k
])
return
config
if
not
os
.
environ
.
get
(
"TVM_USE_RUNTIME_LIB"
,
False
)
:
if
not
_RUNTIME_ONLY
:
# BuildConfig is not available in tvm_runtime
BuildConfig
.
current
=
build_config
()
...
...
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