blob: 1e4166d9384c6ffbf35aa5198a06274dc6fc0049 [file] [log] [blame]
Laurent Carlier749294b2020-06-01 09:03:17 +01001//
Matteo Martincighe011d202019-11-28 11:35:47 +00002// Copyright © 2019 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
Matteo Martincighe011d202019-11-28 11:35:47 +00005
telsoa014fcda012018-03-09 14:13:49 +00006#pragma once
7
8#include <armnn/TensorFwd.hpp>
9#include <armnn/Types.hpp>
10
11namespace armnnUtils
12{
13
Francis Murtagh0fe73762020-08-20 15:38:29 +010014armnn::TensorShape Permuted(const armnn::TensorShape& srcShape,
15 const armnn::PermutationVector& mappings);
telsoa014fcda012018-03-09 14:13:49 +000016
Francis Murtagh0fe73762020-08-20 15:38:29 +010017armnn::TensorInfo Permuted(const armnn::TensorInfo& info,
Jan Eilers7612bd62021-04-06 17:29:03 +010018 const armnn::PermutationVector& mappings);
telsoa014fcda012018-03-09 14:13:49 +000019
Matteo Martincigh747ef822018-12-18 09:26:39 +000020void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
21 const void* src, void* dst, size_t dataTypeSize);
22
Matteo Martincigh747ef822018-12-18 09:26:39 +000023} // namespace armnnUtils