blob: 1ae00a136ba568d64010d802ae227faba976641a [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
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
14armnn::TensorShape Permuted(const armnn::TensorShape& srcShape, const armnn::PermutationVector& mappings);
15
16armnn::TensorInfo Permuted(const armnn::TensorInfo& info, const armnn::PermutationVector& mappings);
17
Matteo Martincigh747ef822018-12-18 09:26:39 +000018void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
19 const void* src, void* dst, size_t dataTypeSize);
20
Matteo Martincigh747ef822018-12-18 09:26:39 +000021} // namespace armnnUtils