aboutsummaryrefslogtreecommitdiff
path: root/delegate/opaque/src/Reduce.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/opaque/src/Reduce.hpp')
-rw-r--r--delegate/opaque/src/Reduce.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/delegate/opaque/src/Reduce.hpp b/delegate/opaque/src/Reduce.hpp
index afea7aafb0..a7948ae98d 100644
--- a/delegate/opaque/src/Reduce.hpp
+++ b/delegate/opaque/src/Reduce.hpp
@@ -147,7 +147,8 @@ TfLiteStatus VisitReduceOperator(DelegateData& delegateData,
}
// Add an Reduce layer
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddReduceLayer(desc);
+ auto layerName = GetName(armnn::LayerType::Reduce, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddReduceLayer(desc, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
@@ -155,7 +156,7 @@ TfLiteStatus VisitReduceOperator(DelegateData& delegateData,
outputSlot.SetTensorInfo(outputTensorInfo);
// try to connect the Constant Inputs if there are any
- if(ProcessInputs(layer,delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk )
+ if (ProcessInputs(layer, delegateData, tfLiteContext, tfLiteNode, nodeIndex) != kTfLiteOk)
{
return kTfLiteError;
}