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

Method enable_run_metadata

tensorflow/python/eager/context.py:1423–1430  ·  view source on GitHub ↗

Enables tracing of op execution via RunMetadata. To retrieve the accumulated metadata call context.export_run_metadata() and to stop tracing call context.disable_run_metadata().

(self)

Source from the content-addressed store, hash-verified

1421 self._handle, self._mirroring_policy)
1422
1423 def enable_run_metadata(self):
1424 """Enables tracing of op execution via RunMetadata.
1425
1426 To retrieve the accumulated metadata call context.export_run_metadata()
1427 and to stop tracing call context.disable_run_metadata().
1428 """
1429 self.ensure_initialized()
1430 pywrap_tensorflow.TFE_ContextEnableRunMetadata(self._handle)
1431
1432 def disable_run_metadata(self):
1433 """Disables tracing of op execution via RunMetadata."""

Callers 3

trace_onFunction · 0.80
enable_run_metadataFunction · 0.80
testRunMetadataMethod · 0.80

Calls 1

ensure_initializedMethod · 0.95

Tested by 1

testRunMetadataMethod · 0.64