Tensorflow Lite for Microcontrollers and…Shell Scripts? #TensorFlow #TFlite #MachineLearning #ArtificialIntelligence #Make #ShellScripts @TensorFlow @petewarden
A few weeks ago Pete Warden wrote about a recent engineering challenge with the TensorFlow Lite project. The article titled ‘Chesterton’s shell script‘ outlines the decision to use a combination of make and shell scripts as their build tools. Warden outlines the necessity to keep TF Micro easy to compile for anyone working with it:
For TFL Micro to be successful it has to be easy to compile, even for engineers from the embedded world who…may not be familiar with the wonderful world of installing Linux or MacOS dependencies. That meant downloading these packages had to be handled automatically by the build process.
Warden discusses the tradeoffs and highlights the challenges of maintaining this type of script. The moral being that before any implementation like this is rewritten in a way that seems ‘simpler’ it is best to understand the reasoning for that implementation inside and out before re-writing it. This is where Chesterton’s fence comes in which can be summarized with, “understand the reasoning before reforming”.
To learn more about this implementation check out an early version of the shell script here. If you’d like to look at more of Pete Warden’s work on the TF build take a look at the GitHub repo here.