aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/workloads/ClMeanWorkload.hpp
blob: c9f0356e044feadbb1768619cc2439fd085cc85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#pragma once

#include <backends/Workload.hpp>

#include <arm_compute/runtime/CL/CLFunctions.h>

namespace armnn
{

arm_compute::Status ClMeanValidate(const TensorInfo& input,
                                   const TensorInfo& output,
                                   const MeanDescriptor& desc);

class ClMeanWorkload : public BaseWorkload<MeanQueueDescriptor>
{
public:
    ClMeanWorkload(const MeanQueueDescriptor& descriptor, const WorkloadInfo& info);

    void Execute() const override;

private:
    // Not using CLMeanStdDev, as 4D input tensor support for Mean has been added to a new function called CLReduceMean.
    mutable arm_compute::CLReduceMean m_Layer;
};

} //namespace armnn