tf.contrib.graph_editor.SubGraphView.__enter__()

tf.contrib.graph_editor.SubGraphView.__enter__()

Allow Python context to minize the life time of a subgraph view.

A subgraph view is meant to be a lightweight and transient object. A short lifetime will alleviate the "out-of-sync" issue mentioned earlier. For that reason, a SubGraphView instance can be used within a Python context. For example:

from tensorflow.contrib import graph_editor as ge with ge.make_sgv(...) as sgv: print(sgv)

Returns:

Itself.

doc_TensorFlow
2016-10-14 13:05:16
Comments
Leave a Comment

Please login to continue.