I’m unable to deploy model to rk3399, I’m running this script “deploy_model_on_mali_gpu.py” and getting this error:
TVMError: [14:05:34] /home/firefly/Desktop/tvm_rk/tvm/src/runtime/module_util.cc:35: Check failed: f != nullptr Loader of (module.loadbinary_) is not presented.
Is there a way to check if the TVM runtime compile succeeded on target ?
BTW here’s the complete error:
kendryte@kendryte-VirtualBox:~/tvm$ python ~/Downloads/deploy_model_on_mali_gpu.py
Downloading cat.png from https://github.com/dmlc/mxnet.js/blob/master/data/cat.png?raw=true…
Downloading synset.txt from https://gist.githubusercontent.com/zhreshold/4d0b62f3d01426887599d4f7ede23ee5/raw/596b27d23537e5a1b5751d2b0481ef172f58b539/imagenet1000_clsid_to_human.txt…
[16:16:08] /home/kendryte/tvm/src/runtime/opencl/opencl_device_api.cc:239: No OpenCL platform matched given existing options …
Traceback (most recent call last):
File “/home/kendryte/Downloads/deploy_model_on_mali_gpu.py”, line 196, in
rlib = remote.load_module(‘net.tar’)
File “/home/kendryte/tvm/python/tvm/rpc/client.py”, line 132, in load_module
return base._LoadRemoteModule(self._sess, path)
File “/home/kendryte/tvm/python/tvm/_ffi/_ctypes/function.py”, line 185, in call
ctypes.byref(ret_val), ctypes.byref(ret_tcode)))
File “/home/kendryte/tvm/python/tvm/_ffi/base.py”, line 72, in check_call
raise TVMError(py_str(_LIB.TVMGetLastError()))
tvm._ffi.base.TVMError: Except caught from RPC call: TVMCall CFunc Error:
Traceback (most recent call last):
File “/home/firefly/Desktop/tvm_rk/tvm/python/tvm/_ffi/_ctypes/function.py”, line 55, in cfun
rv = local_pyfunc(*pyargs)
File “/home/firefly/Desktop/tvm_rk/tvm/python/tvm/rpc/server.py”, line 50, in load_module
m = _load_module(path)
File “/home/firefly/Desktop/tvm_rk/tvm/python/tvm/module.py”, line 244, in load
return _LoadFromFile(path, fmt)
File “/home/firefly/Desktop/tvm_rk/tvm/python/tvm/_ffi/_ctypes/function.py”, line 185, in call
ctypes.byref(ret_val), ctypes.byref(ret_tcode)))
File “/home/firefly/Desktop/tvm_rk/tvm/python/tvm/_ffi/base.py”, line 72, in check_call
raise TVMError(py_str(LIB.TVMGetLastError()))
TVMError: [13:16:18] /home/firefly/Desktop/tvm_rk/tvm/src/runtime/module_util.cc:35: Check failed: f != nullptr Loader of (module.loadbinary) is not presented.