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

Method RecordRawDeallocation

tensorflow/core/framework/log_memory.cc:90–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void LogMemory::RecordRawDeallocation(const string& operation,
91 const int64 step_id, void* ptr,
92 Allocator* allocator, bool deferred) {
93 MemoryLogRawDeallocation deallocation;
94 deallocation.set_step_id(step_id);
95 deallocation.set_operation(operation);
96 deallocation.set_allocation_id(allocator->AllocationId(ptr));
97 deallocation.set_allocator_name(allocator->Name());
98 deallocation.set_deferred(deferred);
99 OutputToLog(deallocation);
100}
101
102} // namespace tensorflow

Callers

nothing calls this directly

Calls 4

OutputToLogFunction · 0.85
set_step_idMethod · 0.80
AllocationIdMethod · 0.45
NameMethod · 0.45

Tested by

no test coverage detected