aboutsummaryrefslogtreecommitdiff
path: root/delegate/opaque/src/SpaceDepth.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/opaque/src/SpaceDepth.hpp')
-rw-r--r--delegate/opaque/src/SpaceDepth.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/delegate/opaque/src/SpaceDepth.hpp b/delegate/opaque/src/SpaceDepth.hpp
index 9cc61eb603..a1c5544a4e 100644
--- a/delegate/opaque/src/SpaceDepth.hpp
+++ b/delegate/opaque/src/SpaceDepth.hpp
@@ -83,12 +83,13 @@ TfLiteStatus VisitSpaceToDepthOperator(DelegateData& delegateData,
}
// Add a SpaceToDepth layer
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddSpaceToDepthLayer(descriptor);
+ auto layerName = GetName(armnn::LayerType::SpaceToDepth, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddSpaceToDepthLayer(descriptor, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
// 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;
}
@@ -173,7 +174,8 @@ TfLiteStatus VisitDepthToSpaceOperator(DelegateData& delegateData,
}
// Add a DepthToSpace layer
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddDepthToSpaceLayer(descriptor);
+ auto layerName = GetName(armnn::LayerType::DepthToSpace, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddDepthToSpaceLayer(descriptor, layerName.c_str());
layer->SetBackendId(setBackend);
ARMNN_ASSERT(layer != nullptr);
@@ -181,7 +183,7 @@ TfLiteStatus VisitDepthToSpaceOperator(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;
}