aboutsummaryrefslogtreecommitdiff
path: root/delegate/src/Pad.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'delegate/src/Pad.hpp')
-rw-r--r--delegate/src/Pad.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/delegate/src/Pad.hpp b/delegate/src/Pad.hpp
index 84280797b1..daedede18d 100644
--- a/delegate/src/Pad.hpp
+++ b/delegate/src/Pad.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -59,7 +59,7 @@ TfLiteStatus VisitPadOperator(DelegateData& delegateData,
const armnn::TensorInfo& inputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteInputTensor);
const armnn::TensorInfo& paddingTensorInfo = GetTensorInfoForTfLiteTensor(tfLitepaddingTensor);
- const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor);
+ const armnn::TensorInfo& outputTensorInfo = GetTensorInfoForTfLiteTensor(tfLiteOutputTensor, true);
// Get the padding data from the input tensor
auto* paddingData = tflite::GetTensorData<int32_t>(&tfLitepaddingTensor);