How to run TensorFlow on an AWS cluster? : <p>I'm trying to run distributed tensorflow on an EMR/EC2 cluster but I don't know how to specify different instances in the cluster to run parts of the code. </p>

<p>In the documentation, they've used <code>tf.device("/gpu:0")</code> to specify a gpu. But what if I have a master CPU and 5 different slave GPU instances running in an EMR cluster and I want to specify those GPUs to run some code? I can't input <code>tf.device()</code> with the public DNS names of the instances because it throws an error saying the name cannot be resolved.</p>
