Skip to content

04. TensorFlow Lite Hello World example

Sandeep Mistry edited this page Mar 17, 2022 · 2 revisions

About

This example will use the Hello World example from TensorFlow Lite for Microcontrollers. It will perform machine learning (ML) inferencing using a TensorFlow ML model with takes a single number input and output's the inputs sine value.

More details can be found on the TensorFlow "Get started with microcontrollers" page.

Prerequisites

Guide

  1. SSH into the AVH EC2 instance.
  2. Change to example directory: cd ~/Arduino/libraries/Arduino_TensorFlowLite/examples/hello_world/
  3. Compile example: ~/bin/arduino-cli compile -b arm:corstone:corstone_300 -v
  4. Run example: ~/bin/arduino-cli upload -b arm:corstone:corstone_300 -v
  5. The example will print out the outputs of the model, which was trained on a sine wave function.
  6. CTRL-C can be used to stop running.