aymericdamien/TensorFlow-Examples

TensorFlow Tutorial and Examples for Beginners (support TF v1 & v2)

What it solves

For people new to TensorFlow, finding clear and concise examples can be difficult. This repository solves that by providing a structured set of examples and notebooks that walk through the essential features of TensorFlow, from basic operations to deep learning models, and covers both TensorFlow v1 and v2.

How it works

The repository is organized into sections: prerequisite introductions, basic models (linear regression, logistic regression, Word2Vec, GBDT), neural networks (supervised like simple NN, CNN, RNN variants, and unsupervised like autoencoders and DCGAN), utilities (saving/restoring, custom layers, TensorBoard), data management (loading data, TFRecords, image augmentation), and hardware (multi-GPU training). Each example comes with a notebook and sometimes source code, with explanations. The default examples are for TensorFlow 2, while older v1 examples are available under a separate folder. Datasets like MNIST are automatically downloaded when needed.

Who it’s for

It is suitable for beginners who want to find clear and concise examples about TensorFlow. It also serves as a reference for the latest TensorFlow API practices, such as layers, estimator, and dataset. Developers needing examples for both TF v1 and v2 can use this repository.

Highlights

  • Examples for both TensorFlow v1 and v2 (default is v2, with v1 in a subfolder).
  • Covers a wide range of topics: from basic ops to neural networks, data management, and multi-GPU.
  • Notebooks and source code with explanations.
  • Includes both high-level APIs (layers, estimator, dataset) and raw low-level implementations.
  • Automatically downloads MNIST dataset when needed.
  • Also links to a separate JAX Examples repository (update from 11/13/2026).
  • Installation is simple: clone and install TensorFlow.

Related

  • Project
  • Project
  • Project
  • Project