Clone this repo:
  1. af44f18 Remove completed TODO by Tommy Chiang · 4 months ago firmware-R145-16552.2.B firmware-R146-16581.2.B firmware-R147-16610.2.B firmware-R148-16640.2.B firmware-fatcat-16650.B firmware-ti50-mp-16604.B firmware-ti50-prepvt-16601.B main release-R145-16552.B release-R146-16581.B release-R147-16610.B release-R148-16640.B stabilize-16552.18.B stabilize-16552.47.B stabilize-16610.38.B stabilize-16610.44.B stabilize-16640.13.B stabilize-bug494118018-16581.42.B stabilize-bug495276125-16581.42.B stabilize-bug501287094-16581.54.B stabilize-bug502491059-16581.61.B
  2. 3d6cb83 tflite: Fix a typo comment in dump.h by Shik Chen · 5 months ago firmware-R144-16503.2.B release-R144-16503.B stabilize-Starline-beam-16503.60.B stabilize-cfm-16503.60.B stabilize-ruken-only-16503.60.B stabilize-starline-16502.11.B stabilize-starline-16502.15.B stabilize-starline-16502.17.B stabilize-starline-16502.19.B stabilize-starline-16502.21.B stabilize-starline-16502.23.B stabilize-starline-16502.25.B stabilize-starline-16502.27.B stabilize-starline-16502.30.B stabilize-starline-16502.B stabilize-volteer-kernel-16503.18.B
  3. c672f11 tflite: Add `per_os_targets = True` to delegates by Tommy Chiang · 7 months ago firmware-R143-16463.2.B release-R143-16463.B stabilize-bug466847668-16463.51.B stabilize-bug469792826-16463.51.B stabilize-bug473820601-16463.72.B stabilize-starline-16466.B
  4. 683bdd4 tflite: Fix native handle deallocation size mismatch by Tommy Chiang · 8 months ago firmware-R142-16433.2.B release-R142-16433.B stabilize-16433.43.B
  5. 3e16540 tflite: Fix native handle deallocation size mismatch by Tommy Chiang · 8 months ago

ChromeOS TFLite

This repository hosts the core ChromeOS TFLite components, enabling on-device machine learning (ODML) workloads accelerated by NPU.

The corresponding ebuild can be found at: tensorflow-9999.ebuild

TensorFlow Patch Management

Patches are stored in the patch/ directory and explicitly listed in WORKSPACE.bazel. A helper script, ./script/patcher.py, is included to facilitate patch management within a TFLite workspace.

The typical workflow:

  1. Eject (Download) TensorFlow Source Code

    Download the TensorFlow source code into a local git repository with patches applied as individual commits:

    ./script/patcher.py eject
    

    This creates a new local git repository at tensorflow/.

  2. Modify the TensorFlow Repository

    Make changes to the tensorflow/ repository as needed, following standard git workflows. Optionally, include a PATCH_NAME= tag in commit messages to specify the filename of the corresponding patch.

  3. Seal the Repository

    Regenerate the patch files and update the WORKSPACE.bazel file:

    ./script/patcher.py seal
    

    This updates the patches in the patch/ directory and reflects the changes in WORKSPACE.bazel.

It's preferred to submit changes to upstream TensorFlow first and cherry-pick them as patches. This helps minimize divergence and makes TensorFlow updates easier.