TFlite model execution: cannot locate symbol "expf"

Hi All,

I compiled the Mobilenet V1 TFlite model with TVM, and when I execute on device using the android_deploy app I am getting the following error at runtime:

11-23 21:07:21.922 28557 28591 E AndroidRuntime: Caused by: org.apache.tvm.Base$TVMError: TVMError: Check failed: lib_handle_ != nullptr: Failed to load dynamic shared library /data/user/0/org.apache.tvm.android.demo/cache/tvm4j_demo_126791749838261767/mod.so dlopen failed: cannot locate symbol “expf” referenced by “/data/data/org.apache.tvm.android.demo/cache/tvm4j_demo_126791749838261767/mod.so”… 11-23 21:07:21.922 28557 28591 E AndroidRuntime: Stack trace: 11-23 21:07:21.922 28557 28591 E AndroidRuntime: File “/home/test/srividya/TVM/tvm/apps/android_deploy/app/src/main/jni/…/…/…/…/…/…/include/…/src/runtime/dso_library.cc”, line 79

The same error is coming when executing ONNX converted TFlite model with TVM. Please help in resolving the issue.

I think you should link with math library manually when you export shared library compiled with tvm.