tag | cac79d50c4637a188af09132b2fcddd9f7625932 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Dec 11 17:00:04 2023 -0800 |
object | 5b7fa0e810cedacf38d2635e0217a8e57aa3dd86 |
Android 14.0.0 Release 18 (UQ1A.231205.015.A1)
commit | 5b7fa0e810cedacf38d2635e0217a8e57aa3dd86 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 28 01:26:28 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 28 01:26:28 2023 +0000 |
tree | bc2d1560d1cf9dfb9d8c113d6578dec84a456656 | |
parent | 8352230f051ecb800d974e61c30a3c56be34f828 [diff] | |
parent | f804d7ee012b319d91fc42014c397ed2fb551d95 [diff] |
Snap for 10017868 from f804d7ee012b319d91fc42014c397ed2fb551d95 to udc-qpr1-release Change-Id: Ie52526ce5fce8e73fa47cc8e53e138f6db7b3082
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.