| 89 | TensorBuffer* root_buffer() override { return this; } |
| 90 | |
| 91 | bool GetAllocatedBytes(size_t* out_bytes) const override { |
| 92 | if (alloc_->TracksAllocationSizes()) { |
| 93 | *out_bytes = alloc_->AllocatedSize(data()); |
| 94 | return *out_bytes > 0; |
| 95 | } else { |
| 96 | return false; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void FillAllocationDescription(AllocationDescription* proto) const override { |
| 101 | void* data_ptr = data(); |
nothing calls this directly
no test coverage detected