blob: b9ef94bc86105e573275a0c17b854211d443504b [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
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
Matteo Martincigh747ef822018-12-18 09:26:39 +000017void Permute(const armnn::TensorShape& dstShape, const armnn::PermutationVector& mappings,
18 const void* src, void* dst, size_t dataTypeSize);
19
Matteo Martincigh747ef822018-12-18 09:26:39 +000020} // namespace armnnUtils