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