aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/Comparison.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/src/Comparison.hpp')
-rw-r--r--delegate/src/Comparison.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/delegate/src/Comparison.hpp b/delegate/src/Comparison.hpp
index ee121e3c5c..80354e835d 100644
--- a/delegate/src/Comparison.hpp
+++ b/delegate/src/Comparison.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
//
@@ -116,6 +116,12 @@ TfLiteStatus VisitComparisonOperator(DelegateData& delegateData,
armnn::IOutputSlot& outputSlot = comparisonLayer->GetOutputSlot(0);
outputSlot.SetTensorInfo(outputTensorInfo);
+ // try to connect the Constant Inputs if there are any
+ if(ProcessInputs(comparisonLayer,delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk )
+ {
+ return kTfLiteError;
+ }
+
auto reshapeLayer = BroadcastTensor(inputTensorInfo0,
inputTensorInfo1,
comparisonLayer,