# galeone/tfgo

Tensorflow + Go, the gopher way

Repository: https://github.com/galeone/tfgo
Canonical: https://ross.abutalabs.com/products/tfgo
Homepage: https://pgaleone.eu/tensorflow/go/2017/05/29/understanding-tensorflow-using-go/
Language: Go
License: Apache-2.0
License Family: permissive
Topics: tensorflow, golang, go
Last push: 2024-03-13T21:59:21+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3389, "days_push": 903, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2491, forks 158 (observed 2026-08-28T04:06:56.413123+00:00)

## What it is
tfgo is a Go library that wraps TensorFlow's Go bindings with a friendlier, method-chaining API for building and executing computation graphs. It is designed for loading and serving models trained in Python rather than training models from scratch.

## Use cases
- run tensorflow models in go
- serve a python-trained model from a go application
- build tensorflow computation graphs in go
- do computer vision inference in go
- avoid the raw tensorflow go bindings api
- execute tensor operations with method chaining in go

## When to choose
- you need to load and run TensorFlow models inside a Go service
- you want a cleaner, scoped, type-safe API over the official Go bindings
- you train in Python but serve in Go

## When to avoid
- you want to train models from scratch in Go
- you use a TensorFlow version other than 2.9.1 without adaptation
- you need PyTorch or a pure-Go ML framework
- you need the latest TensorFlow 2.x features

## Facets
- artifact type: library
- maturity: maintenance
- function: machine-learning, deep-learning, computer-vision
- domain: machine-learning, deep-learning, computer-vision, developer-tools
- platform: go, windows, cross-platform
- tags: tensorflow, go-bindings, method-chaining, model-inference, dataflow-graph, linux, macos

## Member repositories
- galeone/tfgo (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:56.413123+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:27:47.298341+00:00, confidence not recorded.
  - readme: https://github.com/galeone/tfgo (fetched 2026-08-28T04:06:56.413123+00:00, sha 27cef9647572)
  - homepage: https://pgaleone.eu/tensorflow/go/2017/05/29/understanding-tensorflow-using-go/ (fetched 2026-08-29T10:09:40.490733+00:00, sha 8c3a354fa50f)
  - site_page: https://pgaleone.eu/about (fetched 2026-08-29T10:09:40.500220+00:00, sha e1fd2177d895)
  - site_page: https://pgaleone.eu/security/2026/04/12/paying-google-to-hack-macos-users (fetched 2026-08-29T10:09:40.502079+00:00, sha 2dfa3563f230)
  - site_page: https://pgaleone.eu/cloud/2025/06/29/vertex-ai-to-genai-sdk-service-account-auth-python-go (fetched 2026-08-29T10:09:40.503940+00:00, sha ca905a1a0088)
  - site_page: https://pgaleone.eu/golang/vertexai/2024/04/06/rag-for-tabular-data-postgresql-gemini-go (fetched 2026-08-29T10:09:40.505827+00:00, sha 472e68fbce24)
- Data as of 2026-08-30T08:39:29.467469+00:00.
