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.