| 46 | } |
| 47 | |
| 48 | void 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 | |
| 58 | void LogMemory::RecordTensorDeallocation(const int64 allocation_id, |
| 59 | const string& allocator_name) { |
nothing calls this directly
no test coverage detected