aboutsummaryrefslogtreecommitdiff
path: root/include/armnn
diff options
context:
space:
mode:
authorFrancis Murtagh <francis.murtagh@arm.com>2024-01-17 09:39:30 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2024-01-18 13:51:51 +0000
commit0d7963cdb0d12b206bd2963625a899ae9bb2f288 (patch)
tree9becb3b02339aeb03b4cd09338b755ad83f4015f /include/armnn
parent1c3be8f66ea29632f600ee603604df5853e1ded8 (diff)
downloadarmnn-0d7963cdb0d12b206bd2963625a899ae9bb2f288.tar.gz
Bugfix: Remove implicit sign conversion causing -Werror=sign-conversion
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com> Change-Id: If2d5005889b8b0011e4592b46276367798556751
Diffstat (limited to 'include/armnn')
-rw-r--r--include/armnn/Tensor.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/armnn/Tensor.hpp b/include/armnn/Tensor.hpp
index 1bbc19f2f1..2326a0fc65 100644
--- a/include/armnn/Tensor.hpp
+++ b/include/armnn/Tensor.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017,2022-2023 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2017,2022-2024 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
@@ -188,6 +188,8 @@ public:
bool operator==(const TensorInfo& other) const;
bool operator!=(const TensorInfo& other) const;
+ using DifferenceType = std::vector<TensorInfo>::difference_type;
+
const TensorShape& GetShape() const { return m_Shape; }
TensorShape& GetShape() { return m_Shape; }
void SetShape(const TensorShape& newShape) { m_Shape = newShape; }