Returns the default graph for the current thread.
Compat aliases for migration
See Migration guide for more details.
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.
Note: The default graph is a property of the current thread. If you create a new thread, and wish to use the default graph in that thread, you must explicitly add a
with g.as_default():in that thread's function.
| The default |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.