README.chromium 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. Name: TensorFlow Lite Support
  2. Short Name: tflite-support
  3. URL: https://github.com/tensorflow/tflite-support
  4. Version: be6820a9a617b57defecbd4c766eb0bab707cac0
  5. Date: 2022/05/25
  6. License: Apache 2.0
  7. License File: LICENSE
  8. Security Critical: Yes
  9. CPEPrefix: unknown
  10. Description:
  11. TFLite Support is a toolkit that helps users to develop ML and deploy TFLite
  12. models onto mobile devices. It works cross-Platform and is supported on
  13. Java, C++ (WIP), and Swift (WIP).
  14. Third party dependencies:
  15. - tflite
  16. - libzip
  17. - utf
  18. - tensorflow-text
  19. Modifications:
  20. 01) Use re2::StringPiece instead of absl::string_view in regex_tokenizer.cc
  21. 02) Remove support for sentencepiece tokenization because the required overhead
  22. isn't worth adding this functionality, esp since no feature team needs it.
  23. 03) Remove the ABSL_DEPRECATED annotation from a deprecated struct since this
  24. is a no-op in chromium builds and upsets clang.
  25. 04) Do not use absl::any since it is not supported in chromium
  26. 05) Remove an unneeded static initializer.
  27. 06) Check (instead of resetting) the cancel_flag_ before Invoking the model.
  28. 07) Remove support for creating a model handler from a file.
  29. 08) Run clang-format.
  30. * This patch might not apply cleanly, so run `git cl format` and commit the
  31. changes.
  32. 09) Remove unbuilt files that cause `git cl presubmit` errors.
  33. * This patch intentionally does not apply because it was made with
  34. `--irreversible-delete` because it is deleting a large .tflite file causing
  35. the chromium-presubmit bot to fail.
  36. 10) Fix minizip path inclusion. Upstream uses contrib/minizip/, but chromium
  37. uses third_party/zlib/contrib/minizip/.
  38. Update Process (internal: http://shortn/_nwz8liqimy):
  39. 1) Run these commands:
  40. ```
  41. pushd third_party/tflite_support/
  42. rm -rf src/
  43. git clone https://github.com/tensorflow/tflite-support/
  44. mv tflite-support/ src/
  45. rm -rf src/.git/
  46. popd
  47. ```
  48. 2) Apply each patch listed above residing in patches/ using `git apply
  49. third_party/tflite_support/patches/$PATCHFILE`.
  50. 3) Get the build working.
  51. 4) Record the patches made with `git format-patch HEAD -<number of changes>`