aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/Transpose.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/src/Transpose.hpp')
-rw-r--r--delegate/src/Transpose.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/delegate/src/Transpose.hpp b/delegate/src/Transpose.hpp
index 15c53101f2..41178d0b59 100644
--- a/delegate/src/Transpose.hpp
+++ b/delegate/src/Transpose.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
//
@@ -99,6 +99,12 @@ TfLiteStatus VisitTransposeOperator(DelegateData& delegateData,
armnn::IOutputSlot& outputSlot = transposeLayer->GetOutputSlot(0);
outputSlot.SetTensorInfo(outputTensorInfo);
+ // try to connect the Constant Inputs if there are any
+ if(ProcessInputs(transposeLayer,delegateData, tfLiteContext, tfLiteNode) != kTfLiteOk )
+ {
+ return kTfLiteError;
+ }
+
return Connect(transposeLayer, tfLiteNode, delegateData);
}
} // namespace armnnDelegate