I can deploy a nms function on host, but when I deployed the function on target, I got this error, I tried cpp and python ways: terminate called after throwing an instance of ‘dmlc::Error’ what(): [07:46:59] /home/root/tvm/src/runtime/library_module.cc:91: Check failed: ret == 0 (-1 vs. 0) : TVMError: Check failed: f != nullptr: Cannot find function tvm.contrib.sort.argsort_nms in the imported modules or global registry Stack trace: File “/home/root/tvm/src/runtime/module.cc”, line 123 [bt] (0) lib/cpp_deploy_normal(dmlc::LogMessageFatal::~LogMessageFatal()+0x38) [0x55825c5838] [bt] (1) …/…/build/libtvm_runtime.so(tvm::runtime::ModuleNode::GetFuncFromEnv(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)+0x30c) [0x7fa2078a64] [bt] (2) …/…/build/libtvm_runtime.so(TVMBackendGetFuncFromEnv+0x58) [0x7fa2054e50] [bt] (3) lib/cpp_deploy_normal(+0xa254) [0x55825c9254] [bt] (4) lib/cpp_deploy_normal(+0x9a90) [0x55825c8a90] [bt] (5) …/…/build/libtvm_runtime.so(+0x45930) [0x7fa2070930] [bt] (6) lib/cpp_deploy_normal(+0x3738) [0x55825c2738] [bt] (7) lib/cpp_deploy_normal(+0x2e24) [0x55825c1e24] [bt] (8) /lib/libc.so.6(__libc_start_main+0xe4) [0x7fa1c20ce4]
Stack trace: [bt] (0) …/…/build/libtvm_runtime.so(+0x45d60) [0x7fa2070d60] [bt] (1) lib/cpp_deploy_normal(+0x3738) [0x55825c2738] [bt] (2) lib/cpp_deploy_normal(+0x2e24) [0x55825c1e24] [bt] (3) /lib/libc.so.6(__libc_start_main+0xe4) [0x7fa1c20ce4] [bt] (4) lib/cpp_deploy_normal(+0x3000) [0x55825c2000]
run_example.sh: line 29: 7731 Aborted lib/cpp_deploy_normal