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

Method ReadData

tensorflow/lite/delegates/gpu/cl/tensor.h:127–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 Status ReadData(CLCommandQueue* queue, void* data_ptr) const {
128 const size_t data_size =
129 Width() * Height() * Channels() * SizeOf(DataType());
130 RETURN_IF_ERROR(
131 queue->EnqueueReadBuffer(GetMemoryPtr(), data_size, data_ptr));
132 return OkStatus();
133 }
134
135 ~TensorBHWC() override { ReleaseBHWC(); }
136

Callers

nothing calls this directly

Calls 4

OkStatusFunction · 0.85
EnqueueReadBufferMethod · 0.80
DataTypeEnum · 0.70
SizeOfFunction · 0.50

Tested by

no test coverage detected