aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/BatchMatMul.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/BatchMatMul.hpp')
-rw-r--r--delegate/classic/src/BatchMatMul.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/delegate/classic/src/BatchMatMul.hpp b/delegate/classic/src/BatchMatMul.hpp
index 94b25fe7b5..1caa354d4d 100644
--- a/delegate/classic/src/BatchMatMul.hpp
+++ b/delegate/classic/src/BatchMatMul.hpp
@@ -90,7 +90,8 @@ namespace armnnDelegate
return isSupported ? kTfLiteOk : kTfLiteError;
}
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddBatchMatMulLayer(descriptor);
+ auto layerName = GetLayerName(armnn::LayerType::BatchMatMul, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddBatchMatMulLayer(descriptor, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
@@ -98,7 +99,7 @@ namespace armnnDelegate
outputSlot.SetTensorInfo(outputTensorInfo);
// try to connect the Constant Inputs if there are any
- if(ProcessInputs(layer,delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk )
+ if (ProcessInputs(layer, delegateData, tfLiteContext, tfLiteNode, nodeIndex) != kTfLiteOk)
{
return kTfLiteError;
}