Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
python/ | 03-May-2024 | - | 193 | 134 | ||
BUILD | D | 03-May-2024 | 1.6 KiB | 87 | 79 | |
README.md | D | 03-May-2024 | 810 | 14 | 11 | |
android_java_generator.cc | D | 03-May-2024 | 37.8 KiB | 1,018 | 900 | |
android_java_generator.h | D | 03-May-2024 | 4.2 KiB | 117 | 57 | |
code_generator.cc | D | 03-May-2024 | 5.5 KiB | 180 | 143 | |
code_generator.h | D | 03-May-2024 | 2.8 KiB | 81 | 39 | |
code_generator_test.cc | D | 03-May-2024 | 4.9 KiB | 127 | 94 | |
metadata_helper.cc | D | 03-May-2024 | 3.4 KiB | 101 | 79 | |
metadata_helper.h | D | 03-May-2024 | 2 KiB | 52 | 21 | |
utils.cc | D | 03-May-2024 | 5.5 KiB | 195 | 144 | |
utils.h | D | 03-May-2024 | 4.2 KiB | 128 | 47 | |
utils_test.cc | D | 03-May-2024 | 3 KiB | 98 | 72 |
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