| 88 | } |
| 89 | |
| 90 | void 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 |
nothing calls this directly
no test coverage detected