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

Method _is_gputrace_device

tensorflow/python/client/timeline.py:628–632  ·  view source on GitHub ↗

Returns true if this device is part of the GPUTracer logging.

(self, device_name)

Source from the content-addressed store, hash-verified

626 return tensor
627
628 def _is_gputrace_device(self, device_name):
629 """Returns true if this device is part of the GPUTracer logging."""
630 return '/stream:' in device_name or '/memcpy' in device_name or \
631 '/stream#' in device_name or 'stream:MemcpyHtoD' in device_name or \
632 'stream:MemcpyDtoH' in device_name
633
634 def _is_hosttrace_dvice(self, device_name):
635 """ Retruns true if this device is part of the HostTracer logging. """

Callers 2

_assign_lanesMethod · 0.95
_show_computeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected