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

Method RecordTensorAllocation

tensorflow/core/framework/log_memory.cc:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void LogMemory::RecordTensorAllocation(const string& kernel_name,
49 const int64 step_id,
50 const Tensor& tensor) {
51 MemoryLogTensorAllocation allocation;
52 allocation.set_step_id(step_id);
53 allocation.set_kernel_name(kernel_name);
54 tensor.FillDescription(allocation.mutable_tensor());
55 OutputToLog(allocation);
56}
57
58void LogMemory::RecordTensorDeallocation(const int64 allocation_id,
59 const string& allocator_name) {

Callers

nothing calls this directly

Calls 3

OutputToLogFunction · 0.85
set_step_idMethod · 0.80
FillDescriptionMethod · 0.45

Tested by

no test coverage detected