IVGCVSW-1946: Remove armnn/src from the include paths
[platform/upstream/armnn.git] / src / backends / cl / workloads / ClConvertFp32ToFp16Workload.hpp
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5
6 #pragma once
7
8 #include <backendsCommon/Workload.hpp>
9
10 #include <arm_compute/runtime/CL/CLFunctions.h>
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, const TensorInfo& output);
27
28 } //namespace armnn