diff options
Diffstat (limited to 'include/armnn/Types.hpp')
-rw-r--r-- | include/armnn/Types.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp index 12897e2af7..6d8ea6f877 100644 --- a/include/armnn/Types.hpp +++ b/include/armnn/Types.hpp @@ -13,7 +13,7 @@ namespace armnn { -constexpr unsigned int MaxNumOfTensorDimensions = 4U; +constexpr unsigned int MaxNumOfTensorDimensions = 5U; /// @enum Status enumeration /// @var Status::Successful @@ -167,7 +167,12 @@ public: bool IsEqual(const PermutationVector& other) const { - return std::equal(begin(), end(), other.begin(), other.end()); + if (m_NumDimMappings != other.m_NumDimMappings) return false; + for (unsigned int i = 0; i < m_NumDimMappings; ++i) + { + if (m_DimMappings[i] != other.m_DimMappings[i]) return false; + } + return true; } bool IsInverse(const PermutationVector& other) const |