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