diff options
Diffstat (limited to 'delegate/classic/src/Slice.hpp')
-rw-r--r-- | delegate/classic/src/Slice.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/delegate/classic/src/Slice.hpp b/delegate/classic/src/Slice.hpp index a586e024d1..9a63e43afc 100644 --- a/delegate/classic/src/Slice.hpp +++ b/delegate/classic/src/Slice.hpp @@ -149,9 +149,9 @@ TfLiteStatus VisitSliceOperator(DelegateData& delegateData, validateFunc(outputTensorInfo, isSupported); return isSupported ? kTfLiteOk : kTfLiteError; } - auto layerName = fmt::format("Slice:{}", nodeIndex); // Add a Slice layer + auto layerName = GetLayerName(armnn::LayerType::Slice, nodeIndex); armnn::IConnectableLayer* layer = delegateData.m_Network->AddSliceLayer(descriptor, layerName.c_str()); layer->SetBackendId(setBackend); ARMNN_ASSERT(layer != nullptr); @@ -160,7 +160,7 @@ TfLiteStatus VisitSliceOperator(DelegateData& delegateData, 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; } |