Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 1 | // |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 2 | // Copyright © 2017 Arm Ltd and Contributors. All rights reserved. |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <armnn/TypesUtils.hpp> |
| 9 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 10 | #include "NeonBaseWorkload.hpp" |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 11 | |
| 12 | #include <arm_compute/runtime/NEON/functions/NESpaceToDepthLayer.h> |
| 13 | |
| 14 | namespace armnn |
| 15 | { |
| 16 | |
| 17 | arm_compute::Status NeonSpaceToDepthWorkloadValidate(const TensorInfo& input, |
| 18 | const TensorInfo& output, |
| 19 | const SpaceToDepthDescriptor& descriptor); |
| 20 | |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 21 | class NeonSpaceToDepthWorkload : public NeonBaseWorkload<SpaceToDepthQueueDescriptor> |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 22 | { |
| 23 | public: |
Teresa Charlin | 588cbdf | 2022-01-19 15:55:37 +0000 | [diff] [blame] | 24 | using NeonBaseWorkload<SpaceToDepthQueueDescriptor>::NeonBaseWorkload; |
Ellen Norris-Thompson | 2979457 | 2019-06-26 16:40:36 +0100 | [diff] [blame] | 25 | NeonSpaceToDepthWorkload(const SpaceToDepthQueueDescriptor& descriptor, const WorkloadInfo& info); |
| 26 | virtual void Execute() const override; |
| 27 | private: |
| 28 | mutable std::unique_ptr<arm_compute::NESpaceToDepthLayer> m_Layer; |
| 29 | }; |
| 30 | |
| 31 | } //namespace armnn |