Xunkai Zhang 6642441bee [tfls.codegen] Update Image Classifier generation to new API.
PiperOrigin-RevId: 316031289
Change-Id: I918dc5563f80e3bd163dec77b72374242484e936
2020-06-11 20:20:19 -07:00
..

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.