commit | 510ea86c2952e784f46b81356a0c18a2bc7f0e43 | [log] [tgz] |
---|---|---|
author | Ben Nissan <bennissan@google.com> | Wed Aug 24 02:53:11 2022 +0000 |
committer | Ben Nissan <bennissan@google.com> | Wed Aug 24 02:53:11 2022 +0000 |
tree | 845121243bce2106a5d816226999d6c87d6748bf | |
parent | 3fccb92b5eb9831e71380ab6fd5dcdcda13ef32d [diff] |
Revert "[automerge] Return StatusOr from Classify() methods 2p: ..." Revert "Return StatusOr from Classify() methods" Revert submission 19678847-presubmit-am-86cd332fad154163bed53094e7663a44 Reason for revert: Potentially causing system failures within AdServices (e.g.: https://android-build.googleplex.com/builds/tests/view?invocationId=I42200010083746944&testResultId=TR21628220208011705), needs further testing. Reverted Changes: Ib77b4dc3d:[automerge] Return StatusOr from Classify() method... Ib93385061:Return StatusOr from Classify() methods Change-Id: Ifabfdfff0092607179d7f70a589fa8dccfc5e77e
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). The TFLite Support project consists of the following major components:
TFLite Support library serves different tiers of deployment requirements from easy onboarding to fully customizable. There are three major use cases that TFLite Support targets at:
Provide ready-to-use APIs for users to interact with the model.
This is achieved by the TFLite Support Codegen tool, where users can get the model interface (contains ready-to-use APIs) simply by passing the model to the codegen tool. The automatic codegen strategy is designed based on the TFLite metadata.
Provide optimized model interface for popular ML tasks.
The model interfaces provided by the TFLite Support Task Library are specifically optimized compared to the codegen version in terms of both usability and performance. Users can also swap their own custom models with the default models in each task.
Provide the flexibility to customize model interface and build inference pipelines.
The TFLite Support Util Library contains varieties of util methods and data structures to perform pre/post processing and data conversion. It is also designed to match the behavior of TensorFlow modules, such as TF.Image and TF.text, ensuring consistency from training to inferencing.
See the documentation on tensorflow.org for more instruction and examples.
We use Bazel to build the project. When you're building the Java (Android) Utils, you need to set up following env variables correctly:
ANDROID_NDK_HOME
ANDROID_SDK_HOME
ANDROID_NDK_API_LEVEL
ANDROID_SDK_API_LEVEL
ANDROID_BUILD_TOOLS_VERSION
Let us know what you think about TFLite Support by creating a new Github issue, or email us at tflite-support-team@google.com.