vadimsightx opened a new issue #6258:
URL: https://github.com/apache/incubator-tvm/issues/6258


   when doing "import tvm"
   I get next error:
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/__init__.py",
 line 49, in <module>
       from . import target
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/target/__init__.py",
 line 57, in <module>
       from .target import Target, create
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/target/target.py",
 line 28, in <module>
       class TargetKind(Object):
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/_ffi/registry.py",
 line 82, in register_object
       return register(type_key)
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/_ffi/registry.py",
 line 68, in register
       c_str(object_name), ctypes.byref(tidx)))
     File 
"/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/_ffi/base.py",
 line 334, in check_call
       raise get_last_ffi_error()
   tvm._ffi.base.TVMError: Traceback (most recent call last):
     [bt] (2) 
/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/libtvm.so(TVMObjectTypeKey2Index+0x55)
 [0x7fc7f1ac4e75]
     [bt] (1) 
/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/libtvm.so(tvm::runtime::Object::TypeKey2Index(std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> > const&)+0x214) [0x7fc7f1ac4dc4]
     [bt] (0) 
/home/user/.local/lib/python3.6/site-packages/tvm-0.7.dev1-py3.6-linux-x86_64.egg/tvm/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x82)
 [0x7fc7f0fbecd2]
     File "/home/user/tvm/src/runtime/object.cc", line 155
   TVMError: Check failed: it != type_key2index_.end(): Cannot find type 
TargetKind. Did you forget to register the node by TVM_REGISTER_NODE_TYPE ?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to