cpetig / tflite_micro_compiler

generate tflite micro code which bypasses the interpreter (directly calls into kernels)
Apache License 2.0
77 stars 26 forks source link

Reissuing the accidentally deleted pull request for size reduction with arrays #21

Closed cpetig closed 4 years ago

cpetig commented 4 years ago

Output const arrays and for loops, reducing compiled code size https://github.com/cpetig/tflite_micro_compiler/pull/14 https://github.com/rafzi/tflite_micro_compiler/pull/1

Hi Rafael, I would like to get your opinion on this. Readability and MISRA might warrant small changes to the resulting output, but I am quite happy with the result. I will do some size comparisons tomorrow.

Future changes might include figuring out which features (quantization, dynamic memory) are used in the model and reducing the const arrays and initialization code accordingly.

Fixes #15, fixes #16, fixes #13, fixes #7

cpetig commented 4 years ago

Sorry for the large collection of included commits, it started small and grew with additional features covered.