【发布时间】:2017-01-09 08:42:06
【问题描述】:
我想在多台机器、多个 GPU 上运行 tensorflow。作为第一步,在单机上尝试分布式张量流(遵循张量流教程https://www.tensorflow.org/how_tos/distributed/)
下面是 sess.run() 卡住的行
import tensorflow as tf
cluster = tf.train.ClusterSpec({"local": ["localhost:2222", "localhost:2223"]})
server = tf.train.Server(cluster, job_name="local", task_index=0)
a = tf.constant(8)
b = tf.constant(9)
sess = tf.Session('grpc://localhost:2222')
到目前为止一切正常,但是当我运行 sess.run() 时,它卡住了。
sess.run(tf.mul(a,b))
如果有人已经研究过分布式张量流,请告诉我解决方案或其他可以正常工作的教程。
【问题讨论】:
标签: python tensorflow