xref: /aosp_15_r20/external/armnn/include/armnnUtils/Permute.hpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1 //
2 // Copyright © 2019,2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/TensorFwd.hpp>
9 #include <armnn/Types.hpp>
10 
11 #include <stddef.h>
12 
13 namespace armnnUtils
14 {
15 
16 armnn::TensorShape Permuted(const armnn::TensorShape& srcShape,
17                             const armnn::PermutationVector& mappings);
18 
19 armnn::TensorInfo Permuted(const armnn::TensorInfo& info,
20                            const armnn::PermutationVector& mappings);
21 
22 void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
23              const void* src, void* dst, size_t dataTypeSize);
24 
25 } // namespace armnnUtils
26