| 864 | } |
| 865 | |
| 866 | void Tensor::HostScalarTensorBufferBase::FillAllocationDescription( |
| 867 | AllocationDescription* proto) const { |
| 868 | proto->set_requested_bytes(size()); |
| 869 | proto->set_allocator_name("HostScalarTensorBuffer"); |
| 870 | proto->set_ptr(reinterpret_cast<uintptr_t>(data())); |
| 871 | } |
| 872 | |
| 873 | template <typename T> |
| 874 | class SubBuffer : public TensorBuffer { |
no test coverage detected