Book Image

What's New in TensorFlow 2.0

By : Ajay Baranwal, Alizishaan Khatri, Tanish Baranwal
Book Image

What's New in TensorFlow 2.0

By: Ajay Baranwal, Alizishaan Khatri, Tanish Baranwal

Overview of this book

TensorFlow is an end-to-end machine learning platform for experts as well as beginners, and its new version, TensorFlow 2.0 (TF 2.0), improves its simplicity and ease of use. This book will help you understand and utilize the latest TensorFlow features. What's New in TensorFlow 2.0 starts by focusing on advanced concepts such as the new TensorFlow Keras APIs, eager execution, and efficient distribution strategies that help you to run your machine learning models on multiple GPUs and TPUs. The book then takes you through the process of building data ingestion and training pipelines, and it provides recommendations and best practices for feeding data to models created using the new tf.keras API. You'll explore the process of building an inference pipeline using TF Serving and other multi-platform deployments before moving on to explore the newly released AIY, which is essentially do-it-yourself AI. This book delves into the core APIs to help you build unified convolutional and recurrent layers and use TensorBoard to visualize deep learning models using what-if analysis. By the end of the book, you'll have learned about compatibility between TF 2.0 and TF 1.x and be able to migrate to TF 2.0 smoothly.
Table of Contents (13 chapters)
Title Page

Summary

This chapter has shown an overall approach to designing and constructing an input data pipeline using TF 2.0 APIs in a simple and suggestive manner. It has provided the building blocks of the different components of the data pipeline and given details of the APIs that are required to build the pipeline. A comparison between TF 1.x APIs and TF 2.0 APIs has been provided.

The overall flow can be summarized in two major passes: raw data management and dataset manipulation. Raw data management deals with raw data; splitting data into train, validation, and test sets; and the creation of TFRecords. Typically, this is a one-time process, which can also include offline data transformation. Dataset manipulation is an online transformation process that creates dataset objects, applies transformations, shuffles the data, and then repeats this and creates batches of the data...