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