I use Cross Compile to comile a tvm_runtime.so.
Then I use it in linux/arm cortex-a7. Error happened when I run to this code: tvm::runtime::Module::LoadFromFile(“/sdcard/deploy_flag_lib.so”).
The error is as following:
./main: ‘//app//sd//demo//deploy/./deploy_flag_lib.so’ is not an ELF file terminate called after throwing an instance of ‘dmlc::Error’ what(): [05:53:53] /home/deep/workssd/hi3559/Hi3559V200/thirdparty/tvm/src/runtime/dso_module.cc:112: Check failed: lib_handle_ != nullptr: Failed to load dynamic shared library //app//sd//demo//deploy/./deploy_flag_lib.so File not found
I have use python to generate the deploy_flag_lib.so ,by target = tvm.target.arm_cpu(“rasp3b”) #hi3559 armv7l
with relay.build_config(opt_level=3): graph, lib, params = relay.build(func, target, params=params)
Has anyone meet the same problem?