Google Brain's deep learning library, officially deprecated
A modular collection of deep learning models and datasets from Google Brain, now deprecated in favor of Trax.

What it does
Tensor2Tensor is a configurable deep learning workbench that packages models, datasets, and named hyperparameter presets into a single registry. It covers text, audio, and image modalities—translation, speech recognition, image generation, classification—and was built by Google Brain to make reproducing and extending research less tedious.
The interesting bit
The architecture treats experiments as named configurations: swap the problem, model, or hparams_set and you have an entirely different pipeline without rewriting scripts. The README is admirably blunt about the project’s status—it is deprecated, kept alive for bug fixes only, with Trax recommended for new work.
Key highlights
- Includes the Transformer implementation from Attention Is All You Need plus variants like the Universal Transformer
- Ships with datasets and hyperparameters for tasks ranging from WMT translation to ImageNet classification and Librispeech
- Hyperparameter sets are provided for Cloud TPU and 8-GPU configurations
- Can be imported as a Python library or used via CLI entry points
- Apache 2.0 licensed and open-sourced by the Google Brain team
Caveats
- Deprecated; active development has moved to the successor library Trax
- Most tuned hyperparameters assume Cloud TPUs or 8-GPU machines, so expect to adjust for smaller setups
Verdict
Worth a look if you need to reproduce the original Transformer training setup or older Google Brain papers, but start new work in Trax or another modern framework. Skip it if you want active maintenance or consumer hardware defaults.
Frequently asked
- What is tensorflow/tensor2tensor?
- A modular collection of deep learning models and datasets from Google Brain, now deprecated in favor of Trax.
- Is tensor2tensor open source?
- Yes — tensorflow/tensor2tensor is open source, released under the Apache-2.0 license.
- What language is tensor2tensor written in?
- tensorflow/tensor2tensor is primarily written in Python.
- How popular is tensor2tensor?
- tensorflow/tensor2tensor has 17.4k stars on GitHub.
- Where can I find tensor2tensor?
- tensorflow/tensor2tensor is on GitHub at https://github.com/tensorflow/tensor2tensor.