ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf.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.