• Home
Name Date Size #Lines LOC

..--

python/03-May-2024-193134

BUILDD03-May-20241.6 KiB8779

README.mdD03-May-2024810 1411

android_java_generator.ccD03-May-202437.8 KiB1,018900

android_java_generator.hD03-May-20244.2 KiB11757

code_generator.ccD03-May-20245.5 KiB180143

code_generator.hD03-May-20242.8 KiB8139

code_generator_test.ccD03-May-20244.9 KiB12794

metadata_helper.ccD03-May-20243.4 KiB10179

metadata_helper.hD03-May-20242 KiB5221

utils.ccD03-May-20245.5 KiB195144

utils.hD03-May-20244.2 KiB12847

utils_test.ccD03-May-20243 KiB9872

README.md

1# TensorFlow Lite Android Wrapper Code Generator
2
3For TensorFlow Lite model enhanced with [metadata](https://www.tensorflow.org/lite/convert/metadata.md),
4developers can use the TensorFlow Lite Android wrapper code generator to create
5platform specific wrapper code. The wrapper code removes the need to interact
6directly with `ByteBuffer`. Instead, developers can interact with the TensorFlow
7Lite model with typed objects such as `Bitmap` and `Rect`.
8
9The usefulness of the code generator depend on the completeness of the
10TensorFlow Lite model's metadata entry. Refer to the `<Codegen usage>` section
11under relevant fields in
12[metadata_schema.fbs](https://github.com/tensorflow/tflite-support/blob/master/tensorflow_lite_support/metadata/metadata_schema.fbs),
13to see how the codegen tool parses each field.
14