Trying to implement the Machine learning in Arduino Nano BLE sense Rev 2 using the tensor flow library but getting error

The tutorials published in the documentation section of the Arduino website are outdated and refer to an obsolete version of the TensorFlow Lite Micro library.

The library mentioned in the tutorial and available on the linked GitHub repository has not been synchronized with the source tflite-micro repository since 2022.

Between 2019, when the tutorials were created, and 2022, that repository was updated but the version number remained at 2.4.0-ALPHA, so it is no longer the same library for which the sketches were written.

The original 2.4.0-ALPHA library can be downloaded from another link and allows the sketch to compile correctly.
The initial project for porting TensorFlow Lite Micro to Arduino is currently not maintained.

For this reason, we have created a new "porting" project to Arduino by creating a new version of the TensorFlow Lite Micro library, called Chirale_TensorFlowLite, which can be installed via the Arduino IDE's library manager.
This library is the updated version of the Arduino_TensorFlowLite library and, like it, does not contain APIs in the typical simplified Arduino style.

To enable a simpler and more intuitive use of TensorFlowLite, we have defined another library, called ArduTFLite, which can be installed from the Arduino IDE, offering simple and direct APIs in the Arduino style.

This library includes an updated and clearer version of the IMU_Classifier sketch as an example.

These new libraries works on all mbed_nano, mbed_giga, mbed_portenta, mbed_nicla and esp32_nano boards.

1 Like