aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/Gather.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/Gather.hpp')
-rw-r--r--delegate/classic/src/Gather.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/delegate/classic/src/Gather.hpp b/delegate/classic/src/Gather.hpp
index f9611a40cf..30dbd0dc0e 100644
--- a/delegate/classic/src/Gather.hpp
+++ b/delegate/classic/src/Gather.hpp
@@ -88,7 +88,8 @@ TfLiteStatus VisitGatherOperator(DelegateData& delegateData,
return isSupported ? kTfLiteOk : kTfLiteError;
}
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddGatherLayer(gatherDescriptor);
+ auto layerName = GetLayerName(armnn::LayerType::Gather, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddGatherLayer(gatherDescriptor, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo);
@@ -96,7 +97,8 @@ TfLiteStatus VisitGatherOperator(DelegateData& delegateData,
auto inputsTensorsProcess = ProcessInputs(layer,
delegateData,
tfLiteContext,
- tfLiteNode);
+ tfLiteNode,
+ nodeIndex);
if (inputsTensorsProcess == kTfLiteError)
{
return inputsTensorsProcess;