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

Method _produce_tensor

tensorflow/python/client/timeline.py:621–626  ·  view source on GitHub ↗
(self, name, timestamp, tensors_pid, allocator, num_bytes)

Source from the content-addressed store, hash-verified

619 tid, tensor.object_id, snapshot)
620
621 def _produce_tensor(self, name, timestamp, tensors_pid, allocator, num_bytes):
622 object_id = len(self._tensors)
623 tensor = _TensorTracker(name, object_id, timestamp, tensors_pid, allocator,
624 num_bytes)
625 self._tensors[name] = tensor
626 return tensor
627
628 def _is_gputrace_device(self, device_name):
629 """Returns true if this device is part of the GPUTracer logging."""

Callers 1

_analyze_tensorsMethod · 0.95

Calls 1

_TensorTrackerClass · 0.70

Tested by

no test coverage detected