| Name: TensorFlow Lite Support |
| Short Name: tflite-support |
| URL: https://github.com/tensorflow/tflite-support |
| Version: 1407175b715d29c6901bfcf5c81fa119711911aa |
| Date: 2022/10/24 |
| License: Apache 2.0 |
| License File: LICENSE |
| Security Critical: Yes |
| CPEPrefix: unknown |
| |
| Description: |
| TFLite Support is a toolkit that helps users to develop ML and deploy TFLite |
| models onto mobile devices. It works cross-Platform and is supported on |
| Java, C++ (WIP), and Swift (WIP). |
| |
| Third party dependencies: |
| - tflite |
| - libzip |
| - utf |
| - tensorflow-text |
| |
| Modifications: |
| 01) Use re2::StringPiece instead of absl::string_view in regex_tokenizer.cc |
| 02) Remove support for sentencepiece tokenization because the required overhead |
| isn't worth adding this functionality, esp since no feature team needs it. |
| 03) Remove the ABSL_DEPRECATED annotation from a deprecated struct since this |
| is a no-op in chromium builds and upsets clang. |
| 04) Do not use absl::any since it is not supported in chromium |
| 05) Remove an unneeded static initializer. |
| 06) Check (instead of resetting) the cancel_flag_ before Invoking the model. |
| 07) Fix minizip path inclusion. Upstream uses contrib/minizip/, but chromium |
| uses third_party/zlib/contrib/minizip/. |
| 08) Fix unused variable in task_utils.h. |
| 09) Use SysNSStringToUTF8 to convert NSString. |
| 10) Set executable bit for common_win.bat. |
| 11) Fix unused function/field errors on windows. |
| 12) Remove whitespace tokenizer since it uses the unsafe function `chartorune`. |
| 13) Remove big testdata files. |
| 14) Run clang-format. |
| * This patch might not apply cleanly, so run `git cl format` and commit the |
| changes. |
| |
| Update Process (internal: http://shortn/_nwz8liqimy): |
| 1) Run these commands: |
| |
| ``` |
| pushd third_party/tflite_support/ |
| rm -rf src/ |
| git clone https://github.com/tensorflow/tflite-support/ |
| mv tflite-support/ src/ |
| rm -rf src/.git/ |
| popd |
| ``` |
| |
| 2) Apply each patch listed above residing in patches/ using `git apply |
| third_party/tflite_support/patches/$PATCHFILE`. |
| 3) Get the build working. |
| 4) Record the patches made with `git format-patch HEAD -<number of changes>` |