telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [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 | c577f2c | 2018-08-31 09:22:23 +0100 | [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> |
Matthew Bentham | 14e4669 | 2018-09-20 15:35:30 +0100 | [diff] [blame] | 9 | |
| 10 | #include <arm_compute/runtime/CL/CLFunctions.h> |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 11 | |
| 12 | namespace armnn |
| 13 | { |
| 14 | |
| 15 | class ClConvertFp32ToFp16Workload : public Float32ToFloat16Workload<ConvertFp32ToFp16QueueDescriptor> |
| 16 | { |
| 17 | public: |
| 18 | |
| 19 | ClConvertFp32ToFp16Workload(const ConvertFp32ToFp16QueueDescriptor& descriptor, const WorkloadInfo& info); |
| 20 | virtual void Execute() const override; |
| 21 | |
| 22 | private: |
| 23 | mutable arm_compute::CLDepthConvertLayer m_Layer; |
| 24 | }; |
| 25 | |
| 26 | arm_compute::Status ClConvertFp32ToFp16WorkloadValidate(const TensorInfo& input, |
| 27 | const TensorInfo& output, |
| 28 | std::string* reasonIfUnsupported); |
| 29 | |
| 30 | } //namespace armnn |