blob: d719f4a623aec9860e740ce8111c9ff98405d714 [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,
18 const armnn::PermutationVector& mappings,
19 bool perChannelPermute = false);
telsoa014fcda012018-03-09 14:13:49 +000020
Matteo Martincigh747ef822018-12-18 09:26:39 +000021void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
22 const void* src, void* dst, size_t dataTypeSize);
23
Matteo Martincigh747ef822018-12-18 09:26:39 +000024} // namespace armnnUtils