Hello. I follow rpc tutorial to establish connection for tuning model. What I already done from this topic https://tvm.apache.org/docs/tutorials/frontend/deploy_model_on_android.html#deploy-the-pretrained-model-on-android
- I launch docker container with tvm.demo_android
- build tvm with necessary parameters and set PYTHONPATH
- run tracker with host=0.0.0.0 and port=9190 (get the output: INFO:RPCTracker:bind to 0.0.0.0:9190
- install apk on Android device and connect to the tracker with (address=10.0.1.5 is appropriate address of my WiFi, port=9190 and key=androi) and build toolchain
- check the tracker and get this result Tracker address 0.0.0.0:9190
Server List
server-address key
172.17.0.1:46302 server:android
Queue Status
key total free pending
android 1 1 0
-
run proxy and got the output INFO:root:RPCProxy: client port bind to 127.0.0.1:9090 INFO:root:Tracker address:(‘0.0.0.0’, 9190) INFO:root:RPCProxy: Websock port bind to 8888
-
export TVM_TRACKER_HOST=0.0.0.0 export TVM_TRACKER_PORT=9090
-
when I try to connect to the proxy via python3 tests/android_rpc_test.py I get the error Current terminal: Traceback (most recent call last): File “tests/android_rpc_test.py”, line 130, in test_rpc_module() File “tests/android_rpc_test.py”, line 55, in test_rpc_module tracker = rpc.connect_tracker(tracker_host, tracker_port) File “/usr/tvm/python/tvm/rpc/client.py”, line 523, in connect_tracker return TrackerSession((url, port)) File “/usr/tvm/python/tvm/rpc/client.py”, line 291, in init self._connect() File “/usr/tvm/python/tvm/rpc/client.py”, line 299, in _connect magic = struct.unpack("<i", base.recvall(self._sock, 4))[0] File “/usr/tvm/python/tvm/rpc/base.py”, line 83, in recvall raise IOError(“connection reset”) OSError: connection reset
Proxy terminal INFO:root:Invalid RPC magic from TCPSocketProxy:127.0.0.1:None INFO:root:RPCProxy: on_close TCPSocketProxy:127.0.0.1:None … INFO:root:RPCProxy:on_close_event TCPSocketProxy:127.0.0.1:None … INFO:root:Delete TCPSocketProxy:127.0.0.1:None…
Please, give me some hints, where would I make a mistake?