Name: TensorFlow Lite Support Short Name: tflite-support URL: https://github.com/tensorflow/tflite-support Version: be6820a9a617b57defecbd4c766eb0bab707cac0 Date: 2022/05/25 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) Remove support for creating a model handler from a file. 08) Run clang-format. * This patch might not apply cleanly, so run `git cl format` and commit the changes. 09) Remove unbuilt files that cause `git cl presubmit` errors. * This patch intentionally does not apply because it was made with `--irreversible-delete` because it is deleting a large .tflite file causing the chromium-presubmit bot to fail. 10) Fix minizip path inclusion. Upstream uses contrib/minizip/, but chromium uses third_party/zlib/contrib/minizip/. 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 -`