This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
The code is inspired from François Chollet's answer to the following quora question[1] and distributed tensorflow tutorial[2]. | |
It runs the Keras MNIST mlp example across multiple servers. | |
This sample code runs multiple processes on a single host. It can be configured | |
to run on multiple hosts simply by chaning the host names given in *ClusterSpec*. | |
Training the model: |