xref: /aosp_15_r20/external/armnn/include/armnnUtils/Transpose.hpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1 //
2 // Copyright © 2020,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 #include <stddef.h>
11 
12 namespace armnnUtils
13 {
14 
15 armnn::TensorShape TransposeTensorShape(const armnn::TensorShape& srcShape, const armnn::PermutationVector& mappings);
16 
17 armnn::TensorInfo TransposeTensorShape(const armnn::TensorInfo& info, const armnn::PermutationVector& mappings);
18 
19 void Transpose(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
20                const void* src, void* dst, size_t dataTypeSize);
21 
22 } // namespace armnnUtils
23