OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Go Tflite

Go Tflite is a Go library that wraps the TensorFlow Lite C API, allowing Go programs to load .tflite models, access input and output tensors, and invoke inference.

Independent OpenViST project profile, based on linked sources.

Go Tflite — Projects targeting one of the explicitly listed prebuilt build-kit targets
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want a Go application to run a TensorFlow Lite model through the C API and can provide the required headers and library.

Who it is for

  • Go developers integrating TensorFlow Lite model inference into applications.
  • Developers building Go-based classifiers or other applications that consume model tensor inputs and outputs.

Documented uses

  • Load a TensorFlow Lite model from a Go program.
  • Set model input tensor values, invoke inference, and read output tensors.
  • Prepare the TensorFlow Lite C API dependency for a Go build.
Before you choose

Requirements & limits

  • The library depends on the TensorFlow Lite C API and uses cgo.
  • Prebuilt build kits are listed for Linux amd64/arm64, macOS amd64/arm64, and Windows amd64 with MinGW.
  • The README says CI builds against TensorFlow v2.17.1 and that other recent versions should work when the C API is compatible.
  • XNNPACK support is included in the Linux and macOS build kits; the Windows kit has XNNPACK compiled into its C API DLL.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare the TensorFlow Lite C API build kit on Linux

Install the project’s prebuilt TensorFlow Lite C API headers and library for a listed Linux target.

Before you start

  • A Linux amd64 or arm64 target.
  • Permission to extract the build kit into /usr/local.
  • The matching go-tflite release build-kit archive.

Steps

  1. Download the build-kit archive matching the Linux target.

  2. Extract the archive into /usr/local.

  3. Run ldconfig on Linux.

Expected outcome

The TensorFlow Lite C API library and headers from the build kit are installed in the documented location for use by Go builds.

Guide limitations

  • The prebuilt target list covers Linux amd64 and arm64; other targets are not established here.
  • This prepares the dependency; it does not build or run an application.
COMPARE OPTIONS

Compare options for Model inference and serving

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
Go TfliteLoad a TensorFlow Lite model from a Go program.Linux, macOS, Windows
ErgoCreate a project with separate data-preparation, model and training scripts.CLI
Llama2LangTranslate an instruction dataset into a target language and combine translation checkpoints.The repository is public and identified as open source under the Apache-2.0 license.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
mattn/go-tflite · Official homepage title · retained in its source language