Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 5 | |
Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 6 | #pragma once |
| 7 | |
Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 8 | #include <armnn/TypesUtils.hpp> |
| 9 | |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 10 | #include <backendsCommon/Workload.hpp> |
| 11 | |
Nattapat Chaimanowong | cfdcadf | 2018-12-06 11:54:33 +0000 | [diff] [blame] | 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | template <armnn::DataType DataType> |
| 16 | class RefDebugWorkload : public TypedWorkload<DebugQueueDescriptor, DataType> |
| 17 | { |
| 18 | public: |
| 19 | static const std::string& GetName() |
| 20 | { |
| 21 | static const std::string name = std::string("RefDebug") + GetDataTypeName(DataType) + "Workload"; |
| 22 | return name; |
| 23 | } |
| 24 | |
| 25 | using TypedWorkload<DebugQueueDescriptor, DataType>::m_Data; |
| 26 | using TypedWorkload<DebugQueueDescriptor, DataType>::TypedWorkload; |
| 27 | |
| 28 | void Execute() const override; |
| 29 | }; |
| 30 | |
| 31 | using RefDebugFloat32Workload = RefDebugWorkload<DataType::Float32>; |
| 32 | using RefDebugUint8Workload = RefDebugWorkload<DataType::QuantisedAsymm8>; |
| 33 | |
Matteo Martincigh | 4912402 | 2019-01-11 13:25:59 +0000 | [diff] [blame] | 34 | } // namespace armnn |