with tf.Session() as sess: result = sess.run([mul, intermed]) print result 等同于: tf.Session().run([mul, intermed])