diff options
Diffstat (limited to 'delegate/opaque/src/Shape.hpp')
-rw-r--r-- | delegate/opaque/src/Shape.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/delegate/opaque/src/Shape.hpp b/delegate/opaque/src/Shape.hpp index 4c37c3801d..9f15a4f739 100644 --- a/delegate/opaque/src/Shape.hpp +++ b/delegate/opaque/src/Shape.hpp @@ -59,7 +59,7 @@ TfLiteStatus VisitShapeOperator(DelegateData& delegateData, const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteOpaqueTensor(tfLiteOutputTensor, true); auto* shapeParameters = reinterpret_cast<TfLiteShapeParams*>(TfLiteOpaqueNodeGetBuiltinData(tfLiteNode)); - if ( shapeParameters->out_type != kTfLiteInt32 && shapeParameters->out_type != kTfLiteInt64 ) + if (shapeParameters->out_type != kTfLiteInt32 && shapeParameters->out_type != kTfLiteInt64) { TF_LITE_OPAQUE_MAYBE_KERNEL_LOG( tfLiteContext, @@ -92,7 +92,8 @@ TfLiteStatus VisitShapeOperator(DelegateData& delegateData, } // Add a Shape layer - armnn::IConnectableLayer* layer = delegateData.m_Network->AddShapeLayer(); + auto layerName = GetName(armnn::LayerType::Shape, nodeIndex); + armnn::IConnectableLayer* layer = delegateData.m_Network->AddShapeLayer(layerName.c_str()); layer->SetBackendId(setBackend); ARMNN_ASSERT(layer != nullptr); @@ -100,7 +101,7 @@ TfLiteStatus VisitShapeOperator(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; } |