blob: 44f7a281bb107c93bc40d2cd39738018a9b80ab6 [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5#pragma once
6
7#include <armnn/TensorFwd.hpp>
8#include <armnn/Types.hpp>
9
10namespace armnnUtils
11{
12
13armnn::TensorShape Permuted(const armnn::TensorShape& srcShape, const armnn::PermutationVector& mappings);
14
15armnn::TensorInfo Permuted(const armnn::TensorInfo& info, const armnn::PermutationVector& mappings);
16
17template <typename T>
18void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings, const T* src, T* dst);
19
20} // namespace armnnUtils