diff options
author | Mike Kelly <mike.kelly@arm.com> | 2023-08-03 10:42:11 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2023-08-03 22:04:58 +0000 |
commit | a280650509c4fbaa2508cdbc42e31f5a1805bd2a (patch) | |
tree | 1b60f4a2e6c7719ae873e8bdef2a76bd82c35033 /delegate/opaque/src/GatherNd.hpp | |
parent | 7d1b1ca5b25a3aaeecebc537e8cbed2ee1ed3337 (diff) | |
download | armnn-a280650509c4fbaa2508cdbc42e31f5a1805bd2a.tar.gz |
MLCE-1092 Added layerNames to opaque delegate
* All layers added through the opaque delegate will have a name that
includes the nodeIndex from the tflite model.
* Added utilities to OpaqueDelegateUtils to get the names for the layers.
Signed-off-by: Mike Kelly <mike.kelly@arm.com>
Change-Id: Iadcc21646d0b6fcc2c524d6239211ad3af6b6577
Diffstat (limited to 'delegate/opaque/src/GatherNd.hpp')
-rw-r--r-- | delegate/opaque/src/GatherNd.hpp | 6 |
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; |