mattn/go-tflite

Go binding for TensorFlow Lite

What it solves

It provides a way for developers to use TensorFlow Lite models within the Go programming language, filling the gap for those who want to run lightweight machine learning models in Go applications without needing to write C++ or Python.

How it works

The project acts as a Go binding for the TensorFlow Lite C API. It allows Go programs to load .tflite model files, configure interpreter options, allocate tensors, and perform inference by passing input data to the model and retrieving the output results.

Who it’s for

Go developers who need to integrate pre-trained TensorFlow Lite models into their software, including those targeting edge devices or using hardware accelerators like the Edge TPU.

Highlights

  • TFLite Integration: Direct bindings to the TensorFlow Lite C API for running inference in Go.
  • Edge TPU Support: Compatible with the Edge TPU delegate for hardware-accelerated machine learning.
  • Browser-based Testing: Provides a Binder link to test the library with a Jupyter notebook (e.g., for an iris classifier).

Related

  • Project
  • Project
  • Project
  • Project
  • Project