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

Method GetOutputTensor

tensorflow/lite/delegates/gpu/cl/inference_context.cc:393–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393Status InferenceContext::GetOutputTensor(ValueId id, CLCommandQueue* queue,
394 TensorFloat32* result) {
395 const auto& gpu_tensor = *GetTensor(id);
396 const int4 dst_size = gpu_tensor.GetSizeWithDepth();
397 const auto dst_shape = BHWC(1, dst_size.y, dst_size.x, dst_size.z);
398 result->id = id;
399 result->shape = dst_shape;
400 result->data.resize(dst_shape.DimensionsProduct());
401 return gpu_tensor.ReadData(queue, result);
402}
403
404Status RunGraphTransforms(GraphFloat32* graph) {
405 auto merge_padding_transform = NewMergePaddingWithAdd();

Callers

nothing calls this directly

Calls 5

GetTensorFunction · 0.85
GetSizeWithDepthMethod · 0.80
resizeMethod · 0.45
DimensionsProductMethod · 0.45
ReadDataMethod · 0.45

Tested by

no test coverage detected