Hi @tqchen @srkreddy1238 @Lyken17 I am building sample appliaction for iOS_rpc using tvm/apps/ios_rpc at main · apache/tvm · GitHub I am able to connect rpc server using host ip and port number but when I run remote = rpc.connect(proxy_host, proxy_port, key=key) device status is changing from connected to proxy conn…
And when I tried to load model using f1 = remote.load_module(“dev_lib.dylib”) I will get below error.
File "/Users/MacMini/.local/lib/python3.7/site-packages/tvm-0.6.dev0-py3.7-macosx-10.7-x86_64.egg/tvm/rpc/client.py", line 148, in load_module
return base._LoadRemoteModule(self._sess, path)
File "/Users/MacMini/.local/lib/python3.7/site-packages/tvm-0.6.dev0-py3.7-macosx-10.7-x86_64.egg/tvm/_ffi/_ctypes/function.py", line 209, in __call__
raise get_last_ffi_error()
TVMError: Traceback (most recent call last):
[bt] (8) 9 tvmrpc 0x0000000100e75aac std::__1::function<void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 112
[bt] (7) 8 tvmrpc 0x0000000100ef627c std::__1::__function::__func<tvm::runtime::$_16, std::__1::allocator<tvm::runtime::$_16>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 92
[bt] (6) 7 tvmrpc 0x0000000100ef7808 void std::__1::__invoke_void_return_wrapper<void>::__call<tvm::runtime::$_16&, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*>(tvm::runtime::$_16&&&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 88
[bt] (5) 6 tvmrpc 0x0000000100ef7898 decltype(std::__1::forward<tvm::runtime::$_16&>(fp)(std::__1::forward<tvm::runtime::TVMArgs>(fp0), std::__1::forward<tvm::runtime::TVMRetValue*>(fp0))) std::__1::__invoke<tvm::runtime::$_16&, tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*>(tvm::runtime::$_16&&&, tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 96
[bt] (4) 5 tvmrpc 0x0000000100ef793c tvm::runtime::$_16::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const + 132
[bt] (3) 4 tvmrpc 0x0000000100ef7a90 tvm::runtime::DSOModuleNode::Init(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 36
[bt] (2) 3 tvmrpc 0x0000000100ef8e48 tvm::runtime::DSOModuleNode::Load(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 296
[bt] (1) 2 tvmrpc 0x0000000100e44438 dmlc::LogMessageFatal::~LogMessageFatal() + 28
[bt] (0) 1 tvmrpc 0x0000000100e45c40 dmlc::LogMessageFatal::~LogMessageFatal() + 80
TVMError: Except caught from RPC call: [18:47:55] /Users/MacMini/Mallappa/tvm/apps/ios_rpc/tvmrpc/../../../src/runtime/dso_module.cc:112: Check failed: lib_handle_ != nullptr: Failed to load dynamic shared library /var/containers/Bundle/Application/5F379729-7E76-4FE8-940E-2D9370037807/tvmrpc.app/Frameworks/tvm/dev_lib.dylib dlopen(/var/containers/Bundle/Application/5F379729-7E76-4FE8-940E-2D9370037807/tvmrpc.app/Frameworks/tvm/dev_lib.dylib, 5): image not found
And then I again press Connect to Proxy and I try load model I will get bellow error.
File "/Users/MacMini/.local/lib/python3.7/site-packages/tvm-0.6.dev0-py3.7-macosx-10.7-x86_64.egg/tvm/rpc/client.py", line 148, in load_module
return base._LoadRemoteModule(self._sess, path)
File "/Users/MacMini/.local/lib/python3.7/site-packages/tvm-0.6.dev0-py3.7-macosx-10.7-x86_64.egg/tvm/_ffi/_ctypes/function.py", line 209, in __call__
raise get_last_ffi_error()
TVMError: Traceback (most recent call last):
[bt] (6) 7 ??? 0x00007ffeef9e8b00 0x0 + 140732918565632
[bt] (5) 6 libffi.6.dylib 0x0000000103706884 ffi_call_unix64 + 76
[bt] (4) 5 libtvm.dylib 0x000000010c71fe48 TVMFuncCall + 72
[bt] (3) 4 libtvm.dylib 0x000000010c742d52 std::__1::__function::__func<tvm::runtime::$_2, std::__1::allocator<tvm::runtime::$_2>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 594
[bt] (2) 3 libtvm.dylib 0x000000010c743204 tvm::runtime::TVMRetValue tvm::runtime::RPCSession::CallRemote<tvm::runtime::TVMArgValue>(tvm::runtime::RPCCode, tvm::runtime::TVMArgValue&&) + 260
[bt] (1) 2 libtvm.dylib 0x000000010c74d8d8 std::__1::__function::__func<tvm::runtime::RPCSession::Init()::$_2, std::__1::allocator<tvm::runtime::RPCSession::Init()::$_2>, void (tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*)>::operator()(tvm::runtime::TVMArgs&&, tvm::runtime::TVMRetValue*&&) + 200
[bt] (0) 1 libtvm.dylib 0x000000010bda5ec9 dmlc::LogMessageFatal::~LogMessageFatal() + 57
File "/Users/MacMini/Himanshi/tvm/src/runtime/rpc/rpc_session.cc", line 875
TVMError: Check failed: code == RPCCode: :kReturn: code=4