tf.compat.v1.get_default_graph

View source on GitHub

Returns the default graph for the current thread.

The returned graph will be the innermost graph on which a Graph.as_default() context has been entered, or a global default graph if none has been explicitly created.

The default Graph being used in the current thread.