当前位置:网站首页>tf.compat.v1.get_default_graph

tf.compat.v1.get_default_graph

2022-06-21 05:50:00 Wanderer001

参考  tf.compat.v1.get_default_graph - 云+社区 - 腾讯云

Returns the default graph for the current thread.

tf.compat.v1.get_default_graph()

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.

Returns:

  • The default Graph being used in the current thread.

原网站

版权声明
本文为[Wanderer001]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_36670529/article/details/102799778