zhaiyi000 commented on issue #9268:
URL: https://github.com/apache/tvm/issues/9268#issuecomment-943420373


   @apeskov Encountered another error when executing the following code.
   ```
   run(annotate(model, "coremlcompiler"), target_host)
   ```
   
   ```
   (py38) zy@diyideMacBook-Pro ios_rpc_iphone12 % python3 
tests/ios_rpc_mobilenet.py --host '114.214.209.9' --port 9091 --mode 
"standalone"
   WARNING:root:scikit-learn version 0.24.1 is not supported. Minimum required 
version: 0.17. Maximum required version: 0.19.2. Disabling scikit-learn 
conversion API.
   coremlcompiler
   开始编译
   开始导出
   开始连接
   开始上传
   上传完成
   Traceback (most recent call last):
     File "tests/ios_rpc_mobilenet.py", line 188, in <module>
       test_mobilenet(args.host, args.port, args.key, args.mode)
     File "tests/ios_rpc_mobilenet.py", line 169, in test_mobilenet
       run(annotate(model, "coremlcompiler"), target_host)
     File "tests/ios_rpc_mobilenet.py", line 116, in run
       lib = remote.load_module("deploy.dylib")
     File "/Users/zy/Desktop/tvm/python/tvm/rpc/client.py", line 161, in 
load_module
       return _ffi_api.LoadRemoteModule(self._sess, path)
     File "/Users/zy/Desktop/tvm/python/tvm/_ffi/_ctypes/packed_func.py", line 
237, in __call__
       raise get_last_ffi_error()
   tvm.error.RPCError: Traceback (most recent call last):
     [bt] (8) 9   libtvm.dylib                        0x000000011362aee1 
tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, 
tvm::runtime::TVMRetValue*) const + 1521
     [bt] (7) 8   libtvm.dylib                        0x000000011362391c 
tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, 
int, std::__1::function<void (tvm::runtime::TVMArgs)> const&) + 124
     [bt] (6) 7   libtvm.dylib                        0x000000011361ba2d 
tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, 
std::__1::function<void (tvm::runtime::TVMArgs)>) + 333
     [bt] (5) 6   libtvm.dylib                        0x000000011361a2fe 
tvm::runtime::RPCEndpoint::HandleUntilReturnEvent(bool, std::__1::function<void 
(tvm::runtime::TVMArgs)>) + 622
     [bt] (4) 5   libtvm.dylib                        0x000000011361a59e 
tvm::runtime::RPCEndpoint::EventHandler::HandleNextEvent(bool, bool, 
std::__1::function<void (tvm::runtime::TVMArgs)>) + 494
     [bt] (3) 4   libtvm.dylib                        0x000000011361e612 
tvm::runtime::RPCEndpoint::EventHandler::HandleProcessPacket(std::__1::function<void
 (tvm::runtime::TVMArgs)>) + 386
     [bt] (2) 3   libtvm.dylib                        0x00000001136205a5 
tvm::runtime::RPCEndpoint::EventHandler::HandleReturn(tvm::runtime::RPCCode, 
std::__1::function<void (tvm::runtime::TVMArgs)>) + 213
     [bt] (1) 2   libtvm.dylib                        0x000000011216e289 
tvm::runtime::detail::LogFatal::Entry::Finalize() + 89
     [bt] (0) 1   libtvm.dylib                        0x00000001135ba058 
tvm::runtime::Backtrace() + 24
     [bt] (8) 9   tvmrpc                              0x00000001028ccd3c 
decltype(std::__1::forward<tvm::runtime::$_2&>(fp)(std::__1::forward<tvm::runtime::TVMArgs>(fp0),
 std::__1::forward<tvm::runtime::TVMRetValue*>(fp0))) 
std::__1::__invoke<tvm::runtime::$_2&, tvm::runtime::TVMArgs, 
tvm::runtime::TVMRetValue*>(tvm::runtime::$_2&, tvm::runtime::TVMArgs&&, 
tvm::runtime::TVMRetValue*&&) + 96
     [bt] (7) 8   tvmrpc                              0x00000001028ccdf8 
tvm::runtime::$_2::operator()(tvm::runtime::TVMArgs, 
tvm::runtime::TVMRetValue*) const + 156
     [bt] (6) 7   libtvm_runtime.dylib                0x0000000102eed690 
tvm::runtime::CreateModuleFromLibrary(tvm::runtime::ObjectPtr<tvm::runtime::Library>)
 + 232
     [bt] (5) 6   libtvm_runtime.dylib                0x0000000102eec9e0 
tvm::runtime::ProcessModuleBlob(char const*, 
tvm::runtime::ObjectPtr<tvm::runtime::Library>, tvm::runtime::Module*, 
tvm::runtime::ModuleNode**) + 1956
     [bt] (4) 5   libtvm_runtime.dylib                0x0000000102eebcf0 
tvm::runtime::LoadModuleFromBinary(std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, dmlc::Stream*) 
+ 604
     [bt] (3) 4   libtvm_runtime.dylib                0x0000000102e663b0 
tvm::runtime::detail::LogFatal::~LogFatal() + 28
     [bt] (2) 3   libtvm_runtime.dylib                0x0000000102e6c730 
tvm::runtime::detail::LogFatal::~LogFatal() + 40
     [bt] (1) 2   libtvm_runtime.dylib                0x0000000102e6c7b8 
tvm::runtime::detail::LogFatal::Entry::Finalize() + 112
     [bt] (0) 1   libtvm_runtime.dylib                0x0000000102ef9740 
tvm::runtime::Backtrace() + 28
     File "/Users/zy/Desktop/tvm/src/runtime/rpc/rpc_endpoint.cc", line 376
   RPCError: Error caught from RPC call:
   [22:30:06] /Users/zy/Desktop/tvm/src/runtime/library_module.cc:116: Binary 
was created using coreml but a loader of that name is not registered. Available 
loaders are metal, GraphRuntimeFactory, GraphExecutorFactory, metadata, 
VMExecutable. Perhaps you need to recompile with this runtime enabled.
   ```


-- 
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