projects
/
platform
/
upstream
/
tvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8bc77c
)
[Bugfix] Fix Python debugger segfaults with TVM built with LLVM (#5685)
author
Junru Shao
<junrushao1994@gmail.com>
Wed, 27 May 2020 20:50:56 +0000
(13:50 -0700)
committer
GitHub
<noreply@github.com>
Wed, 27 May 2020 20:50:56 +0000
(13:50 -0700)
* Import readline before loading libtvm
* make lint happy
python/tvm/_ffi/base.py
patch
|
blob
|
history
diff --git
a/python/tvm/_ffi/base.py
b/python/tvm/_ffi/base.py
index
8674e31
..
2cca014
100644
(file)
--- a/
python/tvm/_ffi/base.py
+++ b/
python/tvm/_ffi/base.py
@@
-51,6
+51,11
@@
def _load_lib():
lib.TVMGetLastError.restype = ctypes.c_char_p
return lib, os.path.basename(lib_path[0])
+try:
+ import readline # pylint: disable=unused-import
+except ImportError:
+ pass
+
# version number
__version__ = libinfo.__version__
# library instance