Use "With" with Tensorflow Sessions
<p>The tutorial says in order to release resources after computation is complete, I can use <code>with tf.Session() as sess</code> as the scope, and the session will be closed after the scope.</p>

<p>However, if I want to make predictions and do some further computations with the model trained in this session, I am not able to do it because the session is closed after the training. What shall I do? Shall I use <code>sess = tf.Session()</code> at the beginning and <code>sess.close()</code> after I finish my job with this model? If so, what is the point of using <code>with</code> statement which does not allow me doing anything after the training?</p>