mbox series

[meta-arago,scarthgap,0/1] Add TFLite Runtime

Message ID 20250123172509.445473-1-c-shilwant@ti.com
Headers show
Series Add TFLite Runtime | expand

Message

Chirag Shilwant Jan. 23, 2025, 5:25 p.m. UTC
From: Chirag Shilwant <c-shilwant@ti.com>

Add a new recipe to enable TFLite support in meta-arago-extras.
This recipe uses the CMake build system and is based on the TensorFlow
Lite v2.16.2 release.

One important note about this recipe is that it requires internet connectivity
during the do_compile and do_configure stages. This is because the TensorFlow
Lite CMake build system fetches additional packages during these stages.

This patch is currently applicable to scarthgap only. The master branch may
require a minor update to accommodate the UNPACKDIR changes. I plan to post a
master-equivalent patch after some testing to ensure compatibility.

Testing:
- Verified that the recipe builds successfully for scarthgap for armv7 & armv8
- Performed DL inferencing on AM335x (armv7) & AM62x (armv8) via benchmark_model 

I would appreciate your review and feedback on this submission.

Regards,
Chirag

Chirag Shilwant (1):
  meta-arago-extras: Add recipe for TFLite Runtime

 ...eLists-for-building-_pywrap_tensorfl.patch |  37 ++++
 ...eLists-for-building-shared-object-li.patch |  55 +++++
 ...uild-issues-observed-in-TFlite-v2.16.patch |  36 ++++
 .../tensorflow-lite/tensorflow-lite_2.16.bb   | 203 ++++++++++++++++++
 4 files changed, 331 insertions(+)
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite/0001-lite-Update-CMakeLists-for-building-_pywrap_tensorfl.patch
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite/0002-lite-Update-CMakeLists-for-building-shared-object-li.patch
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite/0003-CMakeLists-Fix-build-issues-observed-in-TFlite-v2.16.patch
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite_2.16.bb