I have met this problem recently:
Traceback (most recent call last):
File “insightface_tvm.py”, line 38, in
relay.build(net, target, params=params)
File “/home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/relay/build_module.py”, line 196, in build
params)
File “/home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/relay/build_module.py”, line 107, in build
self._build(func, target, target_host)
File “tvm/_ffi/_cython/./function.pxi”, line 310, in tvm._ffi._cy2.core.FunctionBase.call
File “tvm/_ffi/_cython/./function.pxi”, line 245, in tvm._ffi._cy2.core.FuncCall
File “tvm/_ffi/_cython/./function.pxi”, line 234, in tvm._ffi._cy2.core.FuncCall3
File “tvm/_ffi/_cython/./base.pxi”, line 170, in tvm._ffi._cy2.core.CALL
tvm._ffi.base.TVMError: Traceback (most recent call last):
[bt] (4) /home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/libtvm.so(TVMFuncCall+0x70) [0x7f779daf48]
[bt] (3) /home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/libtvm.so(std::_Function_handler<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*), tvm::relay::backend::RelayBuildModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::shared_ptr<tvm::runtime:: ModuleNode> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#3}>::_M_invoke(std::_Any_data const&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&)+0x2c) [0x7f77574744]
[bt] (2) /home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/libtvm.so(tvm::relay::backend::RelayBuildModule::GetFunction(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::shared_ptr<tvm::runtime: :ModuleNode> const&)::{lambda(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)#3}::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const+0x1a4) [0x7f77574214]
[bt] (1) /home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/libtvm.so(tvm::relay::Function tvm::runtime::TVMArgValue::AsNodeRef<tvm::relay:: Function>() const+0x26c) [0x7f7756c6f4]
[bt] (0) /home/jnet/.local/lib/python3.6/site-packages/tvm-0.6.dev0-py3.6-linux-aarch64.egg/tvm/libtvm.so(dmlc::LogMessageFatal::~LogMessageFatal()+0x4c) [0x7f772363a4]
File “/home/jnet/tvm/include/tvm/packed_func_ext.h”, line 141
TVMError: Check failed: NodeTypeChecker: :Check(sptr.get()): Expected type relay.Function but get relay.Module
Please help me!