tag | add86ed9bc39c8d0cf7af786eb9d2b1f71fa7d0e | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed May 11 05:15:00 2022 +0000 |
object | c95e631a4f780bc4c0fb47d3232270b9bdd66507 |
Android mainline 12.0.0 release 94
commit | c95e631a4f780bc4c0fb47d3232270b9bdd66507 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 15 02:06:57 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jul 15 02:06:57 2021 +0000 |
tree | 63ba5a62524b5a035cee917ea4e3b7a06c6daf56 | |
parent | ce3cccff679053c5c8b11076ff2a19caefa49a67 [diff] | |
parent | e3d3d057417bb8ad2baeadb9a3ffb77a2d5c7629 [diff] |
Snap for 7550930 from e3d3d057417bb8ad2baeadb9a3ffb77a2d5c7629 to mainline-resolv-release Change-Id: I962d4fcbe7a4c6e85c07efa3f0783b56ca9e8e3d
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.