aboutsummaryrefslogtreecommitdiff
path: root/include/armnnUtils/Permute.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnnUtils/Permute.hpp')
-rw-r--r--include/armnnUtils/Permute.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/armnnUtils/Permute.hpp b/include/armnnUtils/Permute.hpp
new file mode 100644
index 0000000000..1ae00a136b
--- /dev/null
+++ b/include/armnnUtils/Permute.hpp
@@ -0,0 +1,21 @@
+//
+// Copyright © 2019 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <armnn/TensorFwd.hpp>
+#include <armnn/Types.hpp>
+
+namespace armnnUtils
+{
+
+armnn::TensorShape Permuted(const armnn::TensorShape& srcShape, const armnn::PermutationVector& mappings);
+
+armnn::TensorInfo Permuted(const armnn::TensorInfo& info, const armnn::PermutationVector& mappings);
+
+void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
+ const void* src, void* dst, size_t dataTypeSize);
+
+} // namespace armnnUtils