Hands-On Deep Learning Architectures with Python
上QQ阅读APP看书,第一时间看更新

Creating a Session

tf.Session object is used to create a Session. It takes the current graph by default, or you can specify which graph to use:

>>>sess = tf.Session()
>>>print(sess.run(sum))

This will print heythere as expected.