wm901115nwpu commented on issue #13915:
URL: https://github.com/apache/tvm/issues/13915#issuecomment-1416565745

   Python 3.9.1 (default, Dec 11 2020, 06:28:49)
   [Clang 10.0.0 ] :: Anaconda, Inc. on darwin
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import tvm
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/Users/unicorn/workspace/tvm/python/tvm/__init__.py", line 33, in 
<module>
       from .runtime.object import Object
     File "/Users/unicorn/workspace/tvm/python/tvm/runtime/__init__.py", line 
23, in <module>
       from .script_printer import Scriptable
     File "/Users/unicorn/workspace/tvm/python/tvm/runtime/script_printer.py", 
line 28, in <module>
       class PrinterConfig(Object):
     File "/Users/unicorn/workspace/tvm/python/tvm/_ffi/registry.py", line 69, 
in register
       check_call(_LIB.TVMObjectTypeKey2Index(c_str(object_name), 
ctypes.byref(tidx)))
     File "/Users/unicorn/workspace/tvm/python/tvm/_ffi/base.py", line 348, in 
check_call
       raise get_last_ffi_error()
   tvm._ffi.base.TVMError: Traceback (most recent call last):
     [bt] (5) 6   ???                                 0x00007ff7b6ef49f0 0x0 + 
140701902785008
     [bt] (4) 5   libffi.7.dylib                      0x000000010957eead 
ffi_call_unix64 + 85
     [bt] (3) 4   libtvm.dylib                        0x0000000122757f24 
TVMObjectTypeKey2Index + 132
     [bt] (2) 3   libtvm.dylib                        0x0000000122757b8d 
tvm::runtime::TypeContext::TypeKey2Index(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 237
     [bt] (1) 2   libtvm.dylib                        0x00000001209c2559 
tvm::runtime::detail::LogFatal::Entry::Finalize() + 89
     [bt] (0) 1   libtvm.dylib                        0x00000001227402b8 
tvm::runtime::Backtrace() + 24
     File "/Users/unicorn/workspace/tvm/src/runtime/object.cc", line 165
   TVMError:
   ---------------------------------------------------------------
   An error occurred during the execution of TVM.
   For more information, please see: https://tvm.apache.org/docs/errors.html
   ---------------------------------------------------------------
     Check failed: (it != type_key2index_.end()) is false: Cannot find type 
node.PrinterConfig. 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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to