Join TensorFlow at Google I/O, May 11-12 Register now

tf.get_default_session

View source on GitHub

Returns the default session for the current thread.

The returned Session will be the innermost session on which a Session or Session.as_default() context has been entered.

The default Session being used in the current thread.