Chapter 10. Taking TensorFlow to Production

In this chapter, we will cover the following topics:

  • Implementing Unit Tests
  • Using Multiple Executors
  • Parallelizing TensorFlow
  • Taking TensorFlow to Production
  • Productionalizing TensorFlow – An Example

Introduction

Up to this point, we have covered how to train and evaluate various models in TensorFlow. In this chapter, we will show how to write code that is ready for production usage. There are various definitions of production-ready code but, for us, production code will be defined as code that has unit tests, separates the training and evaluation code, and efficiently saves and loads various needed parts of the data pipeline and created graph session.

Note

The Python scripts provided in this chapter should ...

Get TensorFlow Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.