| 391 | } |
| 392 | |
| 393 | Status 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 | |
| 404 | Status RunGraphTransforms(GraphFloat32* graph) { |
| 405 | auto merge_padding_transform = NewMergePaddingWithAdd(); |
nothing calls this directly
no test coverage detected