-
Notifications
You must be signed in to change notification settings - Fork 3
04. TensorFlow Lite Hello World example
Sandeep Mistry edited this page Mar 17, 2022
·
2 revisions
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.
- AVH EC2 instance that is setup via the Getting Started with Corstone for Arduino guide.
- SSH into the AVH EC2 instance.
- Change to example directory:
cd ~/Arduino/libraries/Arduino_TensorFlowLite/examples/hello_world/
- Compile example:
~/bin/arduino-cli compile -b arm:corstone:corstone_300 -v
- Run example:
~/bin/arduino-cli upload -b arm:corstone:corstone_300 -v
- The example will print out the outputs of the model, which was trained on a sine wave function.
- CTRL-C can be used to stop running.