Nattapat Chaimanowong | 5d2e700 | 2018-10-12 16:03:56 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 8 | #include <backendsCommon/Workload.hpp> |
| 9 | |
| 10 | #include <arm_compute/core/Error.h> |
| 11 | #include <arm_compute/runtime/IFunction.h> |
| 12 | |
| 13 | #include <memory> |
Nattapat Chaimanowong | 5d2e700 | 2018-10-12 16:03:56 +0100 | [diff] [blame] | 14 | |
| 15 | namespace armnn |
| 16 | { |
| 17 | |
| 18 | arm_compute::Status NeonPooling2dWorkloadValidate(const TensorInfo& input, |
| 19 | const TensorInfo& output, |
| 20 | const Pooling2dDescriptor& descriptor); |
| 21 | |
| 22 | class NeonPooling2dWorkload : public BaseWorkload<Pooling2dQueueDescriptor> |
| 23 | { |
| 24 | public: |
| 25 | using BaseWorkload<Pooling2dQueueDescriptor>::m_Data; |
| 26 | |
| 27 | NeonPooling2dWorkload(const Pooling2dQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 28 | |
| 29 | void Execute() const override; |
| 30 | |
| 31 | private: |
Matthew Bentham | d80a712 | 2019-01-08 17:52:37 +0000 | [diff] [blame] | 32 | std::unique_ptr<arm_compute::IFunction> m_PoolingLayer; |
Nattapat Chaimanowong | 5d2e700 | 2018-10-12 16:03:56 +0100 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | } //namespace armnn |