telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame^] | 8 | #include <backends/neon/workloads/NeonWorkloadUtils.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | arm_compute::Status NeonPooling2dWorkloadValidate(const TensorInfo& input, |
| 14 | const TensorInfo& output, |
| 15 | const Pooling2dDescriptor& descriptor); |
| 16 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 17 | // Base class template providing an implementation of the Pooling2d layer common to all data types. |
| 18 | template <armnn::DataType... dataTypes> |
| 19 | class NeonPooling2dBaseWorkload : public TypedWorkload<Pooling2dQueueDescriptor, dataTypes...> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 20 | { |
| 21 | public: |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 22 | using TypedWorkload<Pooling2dQueueDescriptor, dataTypes...>::m_Data; |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 23 | |
| 24 | NeonPooling2dBaseWorkload(const Pooling2dQueueDescriptor& descriptor, const WorkloadInfo& info, |
| 25 | const std::string& name); |
| 26 | |
| 27 | protected: |
| 28 | mutable arm_compute::NEPoolingLayer m_PoolingLayer; |
| 29 | }; |
| 30 | |
| 31 | |
| 32 | } //namespace armnn |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |