| // |
| // Copyright © 2017 Arm Ltd. All rights reserved. |
| // See LICENSE file in the project root for full license information. |
| // |
| |
| #pragma once |
| |
| #include "backends/ClWorkloadUtils.hpp" |
| |
| namespace armnn |
| { |
| |
| class ClConvertFp32ToFp16Workload : public Float32ToFloat16Workload<ConvertFp32ToFp16QueueDescriptor> |
| { |
| public: |
| |
| ClConvertFp32ToFp16Workload(const ConvertFp32ToFp16QueueDescriptor& descriptor, const WorkloadInfo& info); |
| virtual void Execute() const override; |
| |
| private: |
| mutable arm_compute::CLDepthConvertLayer m_Layer; |
| }; |
| |
| arm_compute::Status ClConvertFp32ToFp16WorkloadValidate(const TensorInfo& input, |
| const TensorInfo& output, |
| std::string* reasonIfUnsupported); |
| |
| } //namespace armnn |