liiir1985 7f62dcda9f | ||
---|---|---|
.. | ||
python | ||
BUILD | ||
README.md | ||
android_java_generator.cc | ||
android_java_generator.h | ||
code_generator.cc | ||
code_generator.h | ||
code_generator_test.cc | ||
metadata_helper.cc | ||
metadata_helper.h | ||
utils.cc | ||
utils.h | ||
utils_test.cc |
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.