diff options
Diffstat (limited to 'delegate/src/Reduce.hpp')
-rw-r--r-- | delegate/src/Reduce.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/delegate/src/Reduce.hpp b/delegate/src/Reduce.hpp index 3f4c118e3d..2d8b462cd2 100644 --- a/delegate/src/Reduce.hpp +++ b/delegate/src/Reduce.hpp @@ -1,5 +1,5 @@ // -// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// Copyright © 2022-2023 Arm Ltd and Contributors. All rights reserved. // SPDX-License-Identifier: MIT // @@ -133,6 +133,12 @@ TfLiteStatus VisitReduceOperator(DelegateData& delegateData, 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 ) + { + return kTfLiteError; + } + // Connect return Connect(layer, tfLiteNode, delegateData); } |