按照教程中使用TVM部署模型时
在运行这句命令的时候python export_onnx_model.py --target_chip esp32s3 --model_path model_quant.onnx --img_path input_sample.npy --template_path "esp_dl/tools/tvm/template_project_for_model" --out_path "esp_dl/example"
报错如下:
Traceback (most recent call last):
File "export_onnx_model.py", line 9, in
import tvm
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/init.py", line 26, in
from ._ffi.base import TVMError, version, _RUNTIME_ONLY
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/init.py", line 28, in
from .base import register_error
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/base.py", line 71, in
_LIB, _LIB_NAME = _load_lib()
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/base.py", line 57, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
File "/python/pythonx/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/libtvm.so)
环境是ubuntu16.04的,请问该怎么办
按照教程中使用TVM部署模型时 在运行这句命令的时候python export_onnx_model.py --target_chip esp32s3 --model_path model_quant.onnx --img_path input_sample.npy --template_path "esp_dl/tools/tvm/template_project_for_model" --out_path "esp_dl/example" 报错如下: Traceback (most recent call last): File "export_onnx_model.py", line 9, in
import tvm
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/init.py", line 26, in
from ._ffi.base import TVMError, version, _RUNTIME_ONLY
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/init.py", line 28, in
from .base import register_error
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/base.py", line 71, in
_LIB, _LIB_NAME = _load_lib()
File "/home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/_ffi/base.py", line 57, in _load_lib
lib = ctypes.CDLL(lib_path[0], ctypes.RTLD_GLOBAL)
File "/python/pythonx/lib/python3.7/ctypes/init.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /home/zhouying/Desktop/ESP32CAM/esp-dl/tools/tvm/python/tvm/libtvm.so)
环境是ubuntu16.04的,请问该怎么办