arduino / arduino/ArduinoTensorFlowLiteTutorials

Breakage caused by removal of "Arduino_TensorFlowLite" library from Library Manager

Offen
#32 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
270
Forks
122
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The "**Arduino_TensorFlowLite**" library dependency of these tutorials was removed from Library Manager at the request of the TensorFlow Lite Micro maintainers (https://github.com/arduino/library-registry/pull/1748).

That removal impacts this project in several ways:

## Documentation

The installation instructions specify installation of the library from Library Manager:

https://github.com/arduino/ArduinoTensorFlowLiteTutorials/blob/master/GestureToEmoji/exercises/exercise1.md#arduino-libraries

> Install the following Arduino libraries using the Library manager:
>
>- TensorFlow Lite library (search for "Arduino_TensorFlowLite")

This is no longer possible.

TensorFlow's library must be installed manually. The library's documentation provides instructions:

https://github.com/tensorflow/tflite-micro-arduino-examples#how-to-install

## Code

TensorFlow's library does not contain the file `tensorflow/lite/version.h`, so the code that contains an `#include` directive for this header no longer compiles:

```text
home/runner/work/ArduinoTensorFlowLiteTutorials/ArduinoTensorFlowLiteTutorials/GestureToEmoji/ArduinoSketches/IMU_Classifier/IMU_Classifier.ino:28:10: fatal error: tensorflow/lite/version.h: No such file or directory
#include
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```

## CI

The repository contains a GitHub Actions workflow that provides a "smoke test" on relevant changes to the project by compiling the sketches:

https://github.com/arduino/ArduinoTensorFlowLiteTutorials/blob/master/.github/workflows/compile-sketches.yml

The workflow is [configured](https://github.com/arduino/compile-sketches#libraries) to install the dependency from Library Manager, which now fails:

```text
Running command: /home/runner/bin/arduino-cli lib install Arduino_TensorFlowLite
Error installing Arduino_TensorFlowLite: Library 'Arduino_TensorFlowLite' not found
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginnen Sie mit dem Installationsabschnitt in GestureToEmoji/exercises/exercise1.md, der IMU_Classifier-Skizze und .github/workflows/compile-sketches.yml. Prüfen Sie, wie die TensorFlow-Bibliothek installiert wird und welchen Header die Skizze einbindet, und verifizieren Sie anschließend, dass die Dokumentation und der Workflow den unterstützten Installationspfad verwenden und dass die Skizzen erfolgreich kompiliert werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
github-actions, tensorflow
Bereich
ci-cd, documentation, embedded-iot
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.