android13/external/tflite-support/tensorflow_lite_support/codegen
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
python initial 2024-06-22 20:45:49 +08:00
BUILD initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
android_java_generator.cc initial 2024-06-22 20:45:49 +08:00
android_java_generator.h initial 2024-06-22 20:45:49 +08:00
code_generator.cc initial 2024-06-22 20:45:49 +08:00
code_generator.h initial 2024-06-22 20:45:49 +08:00
code_generator_test.cc initial 2024-06-22 20:45:49 +08:00
metadata_helper.cc initial 2024-06-22 20:45:49 +08:00
metadata_helper.h initial 2024-06-22 20:45:49 +08:00
utils.cc initial 2024-06-22 20:45:49 +08:00
utils.h initial 2024-06-22 20:45:49 +08:00
utils_test.cc initial 2024-06-22 20:45:49 +08:00

README.md

TensorFlow Lite Android Wrapper Code Generator

For TensorFlow Lite model enhanced with metadata, developers can use the TensorFlow Lite Android wrapper code generator to create platform specific wrapper code. The wrapper code removes the need to interact directly with ByteBuffer. Instead, developers can interact with the TensorFlow Lite model with typed objects such as Bitmap and Rect.

The usefulness of the code generator depend on the completeness of the TensorFlow Lite model's metadata entry. Refer to the <Codegen usage> section under relevant fields in metadata_schema.fbs, to see how the codegen tool parses each field.