blob: 1d777b52560987a5b97e02b05a17c04c08590f3e [file] [log] [blame]
telsoa01c577f2c2018-08-31 09:22:23 +01001//
Teresa Charlin588cbdf2022-01-19 15:55:37 +00002// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa01c577f2c2018-08-31 09:22:23 +01004//
5
6#pragma once
7
Colm Donelan0c479742021-12-10 12:43:54 +00008#include <armnn/backends/Workload.hpp>
Matthew Bentham14e46692018-09-20 15:35:30 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLDepthConvertLayer.h>
telsoa01c577f2c2018-08-31 09:22:23 +010011
12namespace armnn
13{
14
15class ClConvertFp32ToFp16Workload : public Float32ToFloat16Workload<ConvertFp32ToFp16QueueDescriptor>
16{
17public:
18
Sadik Armagane9444752020-12-02 11:28:58 +000019 ClConvertFp32ToFp16Workload(const ConvertFp32ToFp16QueueDescriptor& descriptor,
20 const WorkloadInfo& info,
21 const arm_compute::CLCompileContext& clCompileContext);
telsoa01c577f2c2018-08-31 09:22:23 +010022 virtual void Execute() const override;
23
24private:
25 mutable arm_compute::CLDepthConvertLayer m_Layer;
26};
27
arovir01085f0a42018-10-08 14:48:19 +010028arm_compute::Status ClConvertFp32ToFp16WorkloadValidate(const TensorInfo& input, const TensorInfo& output);
telsoa01c577f2c2018-08-31 09:22:23 +010029
30} //namespace armnn