Getting ready

A few months after the release of TensorFlow, Google released Distributed TensorFlow, which was a big upgrade to the TensorFlow ecosystem, and one that allowed a TensorFlow cluster to be set up (on separate worker machines) and share the computational task of training and evaluating models. Using Distributed TensorFlow is as easy as setting up parameters for workers and then assigning different jobs to different workers.

In this recipe, we will set up two local workers and assign them to different jobs.

Get TensorFlow Machine Learning Cookbook - Second Edition 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.