1. 首页
  2. TensorFlow教程

Hello distributed TensorFlow! 你好分布式 TensorFlow

To see a simple TensorFlow cluster in action, execute the following:

来看一个简单的 tensorflow 集群,运行下面的代码:

Start a TensorFlow server as a single-process “cluster”.

$ python
import tensorflow as tf
c = tf.constant(“Hello, distributed TensorFlow!”)
server = tf.train.Server.create_local_server()
sess = tf.Session(server.target) # Create a session on the server.
sess.run(c)
‘Hello, distributed TensorFlow!’

https://www.tensorflow.org/deploy/distributed

原创文章,作者:fendouai,如若转载,请注明出处:http://www.buluo360.com/2017/08/10/hello-distributed-tensorflow/

发表评论

电子邮件地址不会被公开。 必填项已用*标注

联系我们

 

QQ:1722332572