aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/Split.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/Split.hpp')
-rw-r--r--delegate/classic/src/Split.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/delegate/classic/src/Split.hpp b/delegate/classic/src/Split.hpp
index 877e0b5729..fcd901b23e 100644
--- a/delegate/classic/src/Split.hpp
+++ b/delegate/classic/src/Split.hpp
@@ -130,7 +130,8 @@ TfLiteStatus VisitSplitOperator(DelegateData& delegateData,
return isSupported ? kTfLiteOk : kTfLiteError;
}
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddSplitterLayer(splitDescriptor);
+ auto layerName = GetLayerName(armnn::LayerType::Splitter, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddSplitterLayer(splitDescriptor, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
@@ -335,7 +336,7 @@ TfLiteStatus VisitSplitVOperator(DelegateData& delegateData,
}
// 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;
}