Clear Filters
Clear Filters

MATLAB Coder: Why am I receiving Invalid MEX-file error when trying to load a TensorFlowLite model with loadTFLiteModel after upgrading to Update 1 of R2024a release?

1 view (last 30 days)
I'm using MATLAB Coder and I upgrade to Update 1 of R2024a release. When I try to use the loadTFLiteModel API using the Deep Learning Toolbox Interface for TensorFlow Lite support package, I encounter a strange error (Invalid MEX-file).
What does this error message mean?

Accepted Answer

Bill Chou
Bill Chou on 17 Apr 2024
Edited: Bill Chou on 2 May 2024
In Update 1 of MATLAB R2024a version released on April 16, 2024, an incompatibility was introduced for the "Deep Learning Toolbox Interface for TensorFlow Lite" support package (version 24.1.0) that results in the following error when a TensorFlow Lite model is loaded using loadTFLiteModel function:
Invalid MEX-file undefined symbol: _ZN6tflite11InterpreterD1Ev, version VERS_1.0
This version incompatibility has been fixed in the 24.1.1 version of the "Deep Learning Toolbox Interface for TensorFlow Lite" support package. In order to resolve the issue, please update the support package using the Add-On Explorer.
  2 Comments
Sonia
Sonia on 10 May 2024
I have a similar issue but there is no "Deep Learning Toolbox Interface for TensorFlow Lite" support package version 24.1.1 available and MATLAB R2024a on my machine still uses version 24.1.0 and cannot find any updates.
Sayan Saha
Sayan Saha on 13 May 2024
Hi Sonia,
Can you please follow the steps below and let us know if that resolves the issue for you:
  1. Uninstall the "Deep Learning Toolbox Interface for TensorFlow Lite" support package from your MATLAB installation.
  2. Download the support package from https://www.mathworks.com/matlabcentral/fileexchange/106215-deep-learning-toolbox-interface-for-tensorflow-lite and install it.
If the problem still persists, can you please reach out to our Technical Support team https://www.mathworks.com/support/contact_us.html
Thanks,
Sayan

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!