tag | 93b34d2adb188533d18e77d96d1237cdec0d225d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Mar 06 14:59:05 2023 -0800 |
object | 3440f6b388682a299150bb0eb1729f11160ce139 |
Android Mainline Module Release 9532562,com.google.android.art
commit | 3440f6b388682a299150bb0eb1729f11160ce139 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 22 18:46:47 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Nov 22 18:46:47 2022 +0000 |
tree | 34aa1d83e6ccc821a23dda8063487f59384211e6 | |
parent | 9f14554bbd8af37c4c7add120d1722cd5dc2482d [diff] | |
parent | df43288acfb34d7029bd50ad3869c9d50c29afae [diff] |
Snap for 9320246 from df43288acfb34d7029bd50ad3869c9d50c29afae to mainline-art-release Change-Id: Ib0c0e6e95bfdd746e7a67616b344b9c1eca47f71
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.