Skip to content

basic_bot.debug.test_tflite_runtime

Tests that the TensorFlow Lite runtime is installed and working.

Usage:

python -m basic_bot.debug.test_tflite_runtime

Must have TensorFlow Lite installed. From your Python virtual environment:

python -m pip install tflite-runtime
The above may fail on mac (apple silicon) and windows. It should work on Ubuntu Linux and Raspberry Pi.

src: https://www.hackster.io/news/benchmarking-tensorflow-and-tensorflow-lite-on-raspberry-pi-5-b9156d58a6a2 https://github.com/aallan/benchmarking-ml-on-the-edge/blob/98467e058732a6626b6fb382980477b2121b34d2/benchmark_tf.py#L115