aboutsummaryrefslogtreecommitdiff
path: root/delegate/classic/src/Round.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/classic/src/Round.hpp')
-rw-r--r--delegate/classic/src/Round.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/delegate/classic/src/Round.hpp b/delegate/classic/src/Round.hpp
index 7a060b1d8f..d549a458cc 100644
--- a/delegate/classic/src/Round.hpp
+++ b/delegate/classic/src/Round.hpp
@@ -52,14 +52,15 @@ TfLiteStatus VisitFloorOperator(DelegateData& delegateData,
}
// Add a Floor layer
- armnn::IConnectableLayer* layer = delegateData.m_Network->AddFloorLayer();
+ auto layerName = GetLayerName(armnn::LayerType::Floor, nodeIndex);
+ armnn::IConnectableLayer* layer = delegateData.m_Network->AddFloorLayer(layerName.c_str());
ARMNN_ASSERT(layer != nullptr);
armnn::IOutputSlot& outputSlot = layer->GetOutputSlot(0);
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;
}