| 84 | size_t size() const override { return len_; } |
| 85 | TensorBuffer* root_buffer() override { return this; } |
| 86 | void FillAllocationDescription( |
| 87 | tensorflow::AllocationDescription* proto) const override { |
| 88 | tensorflow::int64 rb = size(); |
| 89 | proto->set_requested_bytes(rb); |
| 90 | proto->set_allocator_name(tensorflow::cpu_allocator()->Name()); |
| 91 | } |
| 92 | |
| 93 | // Prevents input forwarding from mutating this buffer. |
| 94 | bool OwnsMemory() const override { return false; } |
nothing calls this directly
no test coverage detected