MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / enable_graph_collection

Method enable_graph_collection

tensorflow/python/eager/context.py:1438–1445  ·  view source on GitHub ↗

Enables graph collection of executed functions. To retrieve the accumulated graphs call context.export_run_metadata() and to stop collecting graphs call context.disable_graph_collection().

(self)

Source from the content-addressed store, hash-verified

1436 pywrap_tensorflow.TFE_ContextDisableRunMetadata(self._context_handle)
1437
1438 def enable_graph_collection(self):
1439 """Enables graph collection of executed functions.
1440
1441 To retrieve the accumulated graphs call context.export_run_metadata()
1442 and to stop collecting graphs call context.disable_graph_collection().
1443 """
1444 self.ensure_initialized()
1445 pywrap_tensorflow.TFE_ContextEnableGraphCollection(self._handle)
1446
1447 def disable_graph_collection(self):
1448 """Disables graph collection of executed functions."""

Callers 2

trace_onFunction · 0.80
enable_graph_collectionFunction · 0.80

Calls 1

ensure_initializedMethod · 0.95

Tested by

no test coverage detected