notebook.community
Edit and run
In [5]: import tensorflow as tf c = tf.constant("Hello, distributed TensorFlow!") server = tf.train.Server.create_local_server() sess = tf.Session(server.target) print(sess.run(c)) sess.close()
import tensorflow as tf c = tf.constant("Hello, distributed TensorFlow!") server = tf.train.Server.create_local_server() sess = tf.Session(server.target) print(sess.run(c)) sess.close()
b'Hello, distributed TensorFlow!'