blob: c9229acf17145f02b130fcc101c9ec28c23bb972 [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,
Keith Davisbcd860a2021-08-05 14:20:33 +010017 const MeanDescriptor& descriptor);
Matteo Martincigh28dcab62018-10-19 16:40:03 +010018
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