tensorflowarmtensorflow-litetinyml

Difference between model.h and model.cc in tensorflow lite for microcontrollers


What is the difference between the model.h and model.cc files used in tinyml in tensorflow lite for microcontrollers? After optimizing my model and converting it to be used on a 32bit ARM Cortex microcontroller I got only the model.cc file. However in all the tutorials that I have seen both the .h and .cc files are used. Where does the .h file come from?


Solution

  • Yes you are both right. My question was in relation to converting a tensorflow model into a quantized tflite model for arduino because I noticed that most people would generate the .cc without a .h file but in usage the .cc file was no where to be found and only the .h file was used. Turns out in this instance it does not matter since what is required is the quantized binary model. So the .cc file will just be renamed to a .h file later and deployed on the arduino.