blob: 04e9fe23f29974895c2b268d5e5056b8f3c30f47 [file] [log] [blame]
Matteo Martincigh28dcab62018-10-19 16:40:03 +01001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#pragma once
7
Aron Virginas-Tarc9cc8042018-11-01 16:15:57 +00008#include <backendsCommon/Workload.hpp>
Matteo Martincigh28dcab62018-10-19 16:40:03 +01009
Matthew Bentham9b3e7382020-02-05 21:39:55 +000010#include <arm_compute/runtime/CL/functions/CLReduceMean.h>
Matteo Martincigh28dcab62018-10-19 16:40:03 +010011
12namespace armnn
13{
14
15arm_compute::Status ClMeanValidate(const TensorInfo& input,
16 const TensorInfo& output,
17 const MeanDescriptor& desc);
18
19class ClMeanWorkload : public BaseWorkload<MeanQueueDescriptor>
20{
21public:
Sadik Armagane9444752020-12-02 11:28:58 +000022 ClMeanWorkload(const MeanQueueDescriptor& descriptor,
23 const WorkloadInfo& info,
24 const arm_compute::CLCompileContext& clCompileContext);
Matteo Martincigh28dcab62018-10-19 16:40:03 +010025
26 void Execute() const override;
27
28private:
29 // Not using CLMeanStdDev, as 4D input tensor support for Mean has been added to a new function called CLReduceMean.
30 mutable arm_compute::CLReduceMean m_Layer;
31};
32
33} //namespace armnn