blob: ddeac1267ced5c25af921cda4a40ba430db58a1e [file] [log] [blame]
Sadik Armagana2747482021-02-09 10:28:54 +00001//
2// Copyright © 2021 Arm Ltd and Contributors. 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/NEON/functions/NEReductionOperation.h>
11
12namespace armnn
13{
14
15arm_compute::Status NeonReduceWorkloadValidate(const TensorInfo& input,
16 const TensorInfo& output,
Keith Davis2d0679f2021-08-05 11:35:00 +010017 const ReduceDescriptor& descriptor);
Sadik Armagana2747482021-02-09 10:28:54 +000018
19class NeonReduceWorkload : public BaseWorkload<ReduceQueueDescriptor>
20{
21public:
22 NeonReduceWorkload(const ReduceQueueDescriptor& descriptor, const WorkloadInfo& info);
23
24 void Execute() const override;
25
26private:
27 mutable arm_compute::NEReductionOperation m_Layer;
28};
29
30} //namespace armnn