diff options
Diffstat (limited to 'src/backends/reference/workloads/Concatenate.cpp')
-rw-r--r-- | src/backends/reference/workloads/Concatenate.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/backends/reference/workloads/Concatenate.cpp b/src/backends/reference/workloads/Concatenate.cpp index a85e34ee61..a0e0abfaa0 100644 --- a/src/backends/reference/workloads/Concatenate.cpp +++ b/src/backends/reference/workloads/Concatenate.cpp @@ -11,11 +11,13 @@ namespace armnn { -void Concatenate(const ConcatQueueDescriptor &data) +void Concatenate(const ConcatQueueDescriptor &data, + std::vector<ITensorHandle*> inputs, + std::vector<ITensorHandle*> outputs) { - const TensorInfo& outputInfo0 = GetTensorInfo(data.m_Outputs[0]); + const TensorInfo& outputInfo0 = GetTensorInfo(outputs[0]); - std::unique_ptr<Encoder<float>> encoderPtr = MakeEncoder<float>(outputInfo0, data.m_Outputs[0]->Map()); + std::unique_ptr<Encoder<float>> encoderPtr = MakeEncoder<float>(outputInfo0, outputs[0]->Map()); Encoder<float>& encoder = *encoderPtr; for (unsigned int index = 0 ; index < outputInfo0.GetNumElements(); ++index) @@ -37,7 +39,7 @@ void Concatenate(const ConcatQueueDescriptor &data) ConcatQueueDescriptor::ViewOrigin const& view = data.m_ViewOrigins[viewIdx]; //Split view extents are defined by the size of (the corresponding) input tensor. - const TensorInfo& inputInfo = GetTensorInfo(data.m_Inputs[viewIdx]); + const TensorInfo& inputInfo = GetTensorInfo(inputs[viewIdx]); ARMNN_ASSERT(inputInfo.GetNumDimensions() == outputInfo0.GetNumDimensions()); // Check all dimensions to see if this element is inside the given input view. @@ -57,7 +59,7 @@ void Concatenate(const ConcatQueueDescriptor &data) if (insideView) { std::unique_ptr<Decoder<float>> decoderPtr = - MakeDecoder<float>(inputInfo, data.m_Inputs[viewIdx]->Map()); + MakeDecoder<float>(inputInfo,inputs[viewIdx]->Map()); Decoder<float>& decoder = *decoderPtr; unsigned int inIndex = 0; unsigned int dimensionStride = 1; |