aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/Control.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/Control.hpp')
-rw-r--r--delegate/classic/src/Control.hpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/delegate/classic/src/Control.hpp b/delegate/classic/src/Control.hpp
index e6779f360a..0adf262c23 100644
--- a/delegate/classic/src/Control.hpp
+++ b/delegate/classic/src/Control.hpp
@@ -127,7 +127,9 @@ TfLiteStatus VisitConcatenationOperator(DelegateData& delegateData,
}
// Setup layer and connect.
- armnn::IConnectableLayer* concatenationLayer = delegateData.m_Network->AddConcatLayer(concatDescriptor);
+ auto layerName = GetLayerName(armnn::LayerType::Concat, nodeIndex);
+ armnn::IConnectableLayer* concatenationLayer = delegateData.m_Network->AddConcatLayer(concatDescriptor,
+ layerName.c_str());
concatenationLayer->SetBackendId(setBackend);
ARMNN_ASSERT(concatenationLayer != nullptr);
@@ -135,7 +137,8 @@ TfLiteStatus VisitConcatenationOperator(DelegateData& delegateData,
auto inputsTensorsProcess = ProcessInputs(concatenationLayer,
delegateData,
tfLiteContext,
- tfLiteNode);
+ tfLiteNode,
+ nodeIndex);
if (inputsTensorsProcess == kTfLiteError)
{
return inputsTensorsProcess;
@@ -155,7 +158,7 @@ TfLiteStatus VisitConcatenationOperator(DelegateData& delegateData,
}
// Check and Create activation
- return FusedActivation(tfLiteContext, tfLiteNode, activationType, concatenationLayer, 0, delegateData);
+ return FusedActivation(tfLiteContext, tfLiteNode, activationType, concatenationLayer, 0, delegateData, nodeIndex);
}
TfLiteStatus VisitMeanOperator(DelegateData& delegateData,
@@ -271,7 +274,8 @@ TfLiteStatus VisitMeanOperator(DelegateData& delegateData,
}
// Setup layer and connect.
- armnn::IConnectableLayer* meanLayer = delegateData.m_Network->AddMeanLayer(desc);
+ auto layerName = GetLayerName(armnn::LayerType::Mean, nodeIndex);
+ armnn::IConnectableLayer* meanLayer = delegateData.m_Network->AddMeanLayer(desc, layerName.c_str());
meanLayer->SetBackendId(setBackend);
ARMNN_ASSERT(meanLayer != nullptr);
@@ -279,7 +283,7 @@ TfLiteStatus VisitMeanOperator(DelegateData& delegateData,
outputSlot.SetTensorInfo(outputTensorInfo);
// try to connect the Constant Inputs if there are any
- if(ProcessInputs(meanLayer,delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk )
+ if (ProcessInputs(meanLayer, delegateData, tfLiteContext, tfLiteNode, nodeIndex) != kTfLiteOk)
{
return kTfLiteError;
}