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

Function GetBackingBuffer

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:203–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201}
202
203char* GetBackingBuffer(const Tensor& val) {
204 CHECK(DataTypeCanUseMemcpy(val.dtype())) << val.dtype();
205 return const_cast<char*>(val.tensor_data().data());
206}
207
208tstring* GetStringBackingBuffer(const Tensor& val) {
209 CHECK_EQ(DT_STRING, val.dtype());

Callers 1

WriteTensorFunction · 0.85

Calls 4

DataTypeCanUseMemcpyFunction · 0.85
tensor_dataMethod · 0.80
dtypeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected