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.

 

Written by Rebecca Minich, Product Analyst, Data Science at Google. Opinions expressed are solely my own and do not express the views or opinions of my employer.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.