aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/Descriptors.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnn/Descriptors.hpp')
-rw-r--r--include/armnn/Descriptors.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/armnn/Descriptors.hpp b/include/armnn/Descriptors.hpp
index 2d7b17edbb..f1b29cc6c7 100644
--- a/include/armnn/Descriptors.hpp
+++ b/include/armnn/Descriptors.hpp
@@ -1119,4 +1119,25 @@ struct TransposeConvolution2dDescriptor
DataLayout m_DataLayout;
};
+/// A TransposeDescriptor for the TransposeLayer.
+struct TransposeDescriptor
+{
+ TransposeDescriptor()
+ : m_DimMappings{}
+ {}
+
+ TransposeDescriptor(const PermutationVector& dimMappings)
+ : m_DimMappings(dimMappings)
+ {}
+
+ bool operator ==(const TransposeDescriptor &rhs) const
+ {
+ return m_DimMappings.IsEqual(rhs.m_DimMappings);
+ }
+
+ /// @brief Indicates how to translate tensor elements from a given source into the target destination, when
+ /// source and target potentially have different memory layouts e.g. {0U, 3U, 1U, 2U}.
+ PermutationVector m_DimMappings;
+};
+
} // namespace armnn