tflite-micro/tensorflow/lite/micro/python/tflite_size
..
src
tests
README.md

This is a experimental tool to generate a visualization of tflite file with size info for each field.

The size info of each field is the raw storage size info of each field without any flatbuffer overhead such as the offset table etc. Hence, the size info provide a lower bound on the size of data required (such as storing it into a c struct) instead of storing it as the tflite buffer.

Here is how you can use a visualization of tflite file

cd tensorflow/lite/micro/python/tflite_size/src import

bazel run flatbuffer_size -- in_tflite_file out_html_file

A sample output html is here.