aboutsummaryrefslogtreecommitdiff
path: root/delegate/opaque/src/GatherNd.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/opaque/src/GatherNd.hpp')
-rw-r--r--delegate/opaque/src/GatherNd.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/delegate/opaque/src/GatherNd.hpp b/delegate/opaque/src/GatherNd.hpp
index a767d01ad4..cab68da0e3 100644
--- a/delegate/opaque/src/GatherNd.hpp
+++ b/delegate/opaque/src/GatherNd.hpp
@@ -82,7 +82,8 @@ TfLiteStatus VisitGatherNdOperator(DelegateData& delegateData,
return isSupported ? kTfLiteOk : kTfLiteError;
}
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddGatherNdLayer();
+ auto layerName = GetName(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);
@@ -90,7 +91,8 @@ TfLiteStatus VisitGatherNdOperator(DelegateData& delegateData,
auto inputsTensorsProcess = ProcessInputs(layer,
delegateData,
tfLiteContext,
- tfLiteNode);
+ tfLiteNode,
+ nodeIndex);
if (inputsTensorsProcess == kTfLiteError)
{
return inputsTensorsProcess;