tag | c3483d13a9ce96b8e528ac503abd0fc7671453f6 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri May 26 06:23:33 2023 -0700 |
object | 64d1ff73486a8c47398a8313d4648d4df76737f5 |
aml_wif_331710030
commit | 64d1ff73486a8c47398a8313d4648d4df76737f5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 01 03:10:23 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Mar 01 03:10:23 2023 +0000 |
tree | 97cf973d8b5114e65bb9444dee1207cce6b36cd6 | |
parent | 867549e8b26142fcf573b8a54bcf307b1ed11c62 [diff] | |
parent | 55d84e75c29f45f9a277c01be46f19edef4e76c9 [diff] |
Snap for 9665772 from 55d84e75c29f45f9a277c01be46f19edef4e76c9 to mainline-wifi-release Change-Id: I8c80408dc47f269adfab2b14de491cedd74676ba
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.