Commit bcb3bef5 by Tianqi Chen Committed by GitHub

[CYTHON] Correct backtrace print for python3 (#989)

parent a6e8fe6c
......@@ -37,7 +37,7 @@ cdef extern from "tvm/runtime/c_runtime_api.h":
DLDataType dtype
int64_t* shape
int64_t* strides
uint64_t byte_offset;
uint64_t byte_offset
ctypedef struct TVMValue:
int64_t v_int64
......@@ -128,7 +128,7 @@ cdef inline c_str(pystr):
cdef inline CALL(int ret):
if ret != 0:
raise TVMError(TVMGetLastError())
raise TVMError(py_str(TVMGetLastError()))
cdef inline object ctypes_handle(void* chandle):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment