aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/Reduce.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/Reduce.hpp')
-rw-r--r--delegate/classic/src/Reduce.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/delegate/classic/src/Reduce.hpp b/delegate/classic/src/Reduce.hpp
index 2d8b462cd2..8731ef5235 100644
--- a/delegate/classic/src/Reduce.hpp
+++ b/delegate/classic/src/Reduce.hpp
@@ -125,8 +125,9 @@ TfLiteStatus VisitReduceOperator(DelegateData& delegateData,
return isSupported ? kTfLiteOk : kTfLiteError;
}
- // Add an Reduce layer
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddReduceLayer(desc);
+ // Add a Reduce layer
+ auto layerName = GetLayerName(armnn::LayerType::Reduce, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddReduceLayer(desc, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
@@ -134,7 +135,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;
}