telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
David Beck | ac42efd | 2018-09-26 17:41:13 +0100 | [diff] [blame] | 8 | #include <backends/Workload.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 9 | |
| 10 | #include <armnn/TypesUtils.hpp> |
| 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | template <armnn::DataType DataType> |
| 16 | class RefPermuteWorkload : public TypedWorkload<PermuteQueueDescriptor, DataType> |
| 17 | { |
| 18 | public: |
| 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 | |
arovir01 | 616e775 | 2018-10-01 17:08:59 +0100 | [diff] [blame] | 30 | using RefPermuteFloat16Workload = RefPermuteWorkload<DataType::Float16>; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 31 | using RefPermuteFloat32Workload = RefPermuteWorkload<DataType::Float32>; |
| 32 | using RefPermuteUint8Workload = RefPermuteWorkload<DataType::QuantisedAsymm8>; |
| 33 | |
| 34 | } //namespace armnn |