If I type
python3 arm_cpu_imagenet_bench.py --network mobilenet --model p20pro --rpc-key android
I could pass the test.
Then I change into
python3 arm_cpu_imagenet_bench.py --network mobilenet --model rk3399 --rpc-key android
The program will exit and report error
Traceback (most recent call last):
File “arm_cpu_imagenet_bench.py”, line 121, in
evaluate_network(network, target, target_host, args.repeat)
File “arm_cpu_imagenet_bench.py”, line 60, in evaluate_network
rlib = remote.load_module(filename)
File “/home/tvm/tvm/python/tvm/rpc/client.py”, line 159, in load_module
return _ffi_api.LoadRemoteModule(self._sess, path)
File “/home/tvm/tvm/python/tvm/_ffi/_ctypes/packed_func.py”, line 237, in call
raise get_last_ffi_error()
tvm._ffi.base.TVMError: Traceback (most recent call last):
4: TVMFuncCall
3: ZN3tvm7runtime13PackedFuncObj9ExtractorINS0_16PackedFuncSubObjIZNS0_15TypedPackedFuncIFNS0_6ModuleES5_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE17AssignTypedLambdaINS0_UlS5_SB_E3_EEEvT_SB_EUlRKNS0_7TVMArgsEPNS0_11TVMRetValueEE_EEE4CallEPKS1_SH_SL
2: tvm::runtime::RPCWrappedFunc::operator()(tvm::runtime::TVMArgs, tvm::runtime::TVMRetValue*) const
1: tvm::runtime::RPCClientSession::CallFunc(void*, TVMValue const*, int const*, int, std::function<void (tvm::runtime::TVMArgs)> const&)
0: tvm::runtime::RPCEndpoint::CallFunc(void*, TVMValue const*, int const*, int, std::function<void (tvm::runtime::TVMArgs)>)
File “/home/tvm/tvm/src/runtime/rpc/rpc_endpoint.cc”, line 801
TVMError:
An error occurred during the execution of TVM.
For more information, please see: Handle TVM Errors — tvm 0.11.dev0 documentation
Check failed: (code == RPCCode::kReturn) is false: code=kShutdown
In the same time, the rpc apk on the device will get disconnected and exit back to the main menu.