Xunkai Zhang b57d910db5 Opensource TFLite Support codegen.
PiperOrigin-RevId: 302011153
Change-Id: Idb2f649dc48fdc449fac2d6e9009719d29afb2ad
2020-03-20 05:55:57 -07:00

819 B

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.