mbox series

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

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

Message

Chirag Shilwant Feb. 21, 2025, 10:24 p.m. UTC
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.18.0 release.

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.

Changes in v2,
* Addressed Denys's suggestion to avoid network connectivity after do_fetch
* Moved to TFLite v2.18 which is the latest release tag
* Addressed Andrew's suggestion posted on v1 patch [0]

[0]: https://patchwork.yoctoproject.org/project/arago/patch/20250123172509.445473-2-c-shilwant@ti.com/

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 |  61 +++++
 ...uild-issues-observed-in-TFlite-v2.18.patch |  36 +++
 .../tensorflow-lite/tensorflow2-lite.pc.in    |   6 +
 .../tensorflow-lite/tensorflow-lite_2.18.0.bb | 232 ++++++++++++++++++
 5 files changed, 372 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.18.patch
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite/tensorflow2-lite.pc.in
 create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite_2.18.0.bb

Comments

Denys Dmytriyenko Feb. 22, 2025, 2:34 a.m. UTC | #1
Thank you for addressing the comments - this looks reasonable.


On Sat, Feb 22, 2025 at 03:54:45AM +0530, Chirag Shilwant wrote:
> 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.18.0 release.
> 
> 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.
> 
> Changes in v2,
> * Addressed Denys's suggestion to avoid network connectivity after do_fetch
> * Moved to TFLite v2.18 which is the latest release tag
> * Addressed Andrew's suggestion posted on v1 patch [0]
> 
> [0]: https://patchwork.yoctoproject.org/project/arago/patch/20250123172509.445473-2-c-shilwant@ti.com/
> 
> 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 |  61 +++++
>  ...uild-issues-observed-in-TFlite-v2.18.patch |  36 +++
>  .../tensorflow-lite/tensorflow2-lite.pc.in    |   6 +
>  .../tensorflow-lite/tensorflow-lite_2.18.0.bb | 232 ++++++++++++++++++
>  5 files changed, 372 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.18.patch
>  create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite/tensorflow2-lite.pc.in
>  create mode 100644 meta-arago-extras/recipes-framework/tensorflow-lite/tensorflow-lite_2.18.0.bb
> 
> -- 
> 2.34.1