tensorflow-micropython-examples
tensorflow-micropython-examples copied to clipboard
Find out where the tensorflow micro version comes from in the new repository
I was depending on tensorflow/lite/version.h and then using the TFLITE_VERSION_STRING define but that did not make it into the tflite-micro repository.
There are constants in tensorflow/lite/micro/micro_interpreter.h for the schema version and I suspect that may include the tflite version in the future.
TFLite doesn't have a version per-se. I asked on the tflite micro mailing list and was told that using the commit id would be more accurate.
I need to change the build to write a MICROLITE_VERSION_STRING that is composed of the git commit id from the tensorflow submodule and then pass that into what is put into the microlite object version field in micropython.
git submodule status may be a good way of getting the version string.
$ git submodule status
a3675294ae39a724aec6959238c45af0dea92f21 micropython (v1.16-160-ga3675294a)
548aaba97da850460b0f2dd0b5d6ea082fab97fc micropython-ulab (3.3.1-18-g548aaba)
d30cdac11bff4df6f50bae1a14753b76bde8e4d3 tensorflow (heads/main)
I'm not sure where it is getting the version from but if I can get that from tensorflow it would be the perfect value to embed.