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
diff --git a/delegate/opaque/src/Tile.hpp b/delegate/opaque/src/Tile.hpp
index 17cbdee..0ad65ca 100644
--- a/delegate/opaque/src/Tile.hpp
+++ b/delegate/opaque/src/Tile.hpp
@@ -167,7 +167,7 @@
tileDescriptor);
}
- std::string layerName("Tile");
+ auto layerName = GetName(armnn::LayerType::Tile, nodeIndex);
armnn::IConnectableLayer* layer = delegateData.m_Network->AddTileLayer(tileDescriptor, layerName.c_str());
if (layer == nullptr)
@@ -177,7 +177,7 @@
layer->GetOutputSlot(0).SetTensorInfo(outputTensorInfo);
- if (ProcessInputs(layer, delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk)
+ if (ProcessInputs(layer, delegateData, tfLiteContext, tfLiteNode, nodeIndex) != kTfLiteOk)
{
return kTfLiteError;
}