blob: b9f259a8f8c46d587f65c0fe42f628eb4f53b208 [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
6#pragma once
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <backendsCommon/Workload.hpp>
telsoa014fcda012018-03-09 14:13:49 +00009
10#include <armnn/TypesUtils.hpp>
11
12namespace armnn
13{
14
15template <armnn::DataType DataType>
16class RefPermuteWorkload : public TypedWorkload<PermuteQueueDescriptor, DataType>
17{
18public:
19 static const std::string& GetName()
20 {
21 static const std::string name = std::string("RefPermute") + GetDataTypeName(DataType) + "Workload";
22 return name;
23 }
24
25 using TypedWorkload<PermuteQueueDescriptor, DataType>::m_Data;
26 using TypedWorkload<PermuteQueueDescriptor, DataType>::TypedWorkload;
27 void Execute() const override;
28};
29
Narumol Prangnawarat44179c32020-03-11 14:51:27 +000030using RefPermuteBFloat16Workload = RefPermuteWorkload<DataType::BFloat16>;
Sadik Armagan303980c2020-04-17 12:45:14 +010031using RefPermuteFloat16Workload = RefPermuteWorkload<DataType::Float16>;
32using RefPermuteFloat32Workload = RefPermuteWorkload<DataType::Float32>;
33using RefPermuteQAsymmS8Workload = RefPermuteWorkload<DataType::QAsymmS8>;
34using RefPermuteQAsymm8Workload = RefPermuteWorkload<DataType::QAsymmU8>;
35using RefPermuteQSymm16Workload = RefPermuteWorkload<DataType::QSymmS16>;
telsoa014fcda012018-03-09 14:13:49 +000036
Mohamed Nour Abouelseouddd6acea2018-10-18 12:26:19 +010037} //namespace armnn