import tensorflow as tf
# graph build
tf.__version__
hello = tf.constant("Hello, TensorFlow!")
# graph init
sess = tf.Session()
# graph run
sess.run(hello)
sess.close()
import tensorflow as tf
tf.__version__
hello = tf.constant("Hello, TensorFlow!")
with tf.Session() as sess:
sess.run(hello)
http://pythonkim.tistory.com/8?category=573319