MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / FillAllocationDescription

Method FillAllocationDescription

tensorflow/core/framework/tensor.cc:866–871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866void 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
873template <typename T>
874class SubBuffer : public TensorBuffer {

Callers 3

FillDescriptionMethod · 0.45
FillDescriptionMethod · 0.45

Calls 2

sizeFunction · 0.50
dataFunction · 0.50

Tested by

no test coverage detected