alexanderholt
11/7/2017 - 7:26 PM

TensorFlow initialize session

# How to get the value of a?
# Create a session, assign it to variable sess so we can call it later
# Within the session, evaluate the graph to fetch the value of a

a = tf.add(4, 6)
sess = tf.Session()

print(sess.run(a))

sess.close()