xref: /aosp_15_r20/external/armnn/src/backends/neon/workloads/NeonDepthToSpaceWorkload.hpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1 //
2 // Copyright © 2019 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/Descriptors.hpp>
9 
10 #include "NeonBaseWorkload.hpp"
11 
12 #include <arm_compute/runtime/NEON/functions/NEDepthToSpaceLayer.h>
13 
14 namespace armnn
15 {
16 
17 arm_compute::Status NeonDepthToSpaceWorkloadValidate(const TensorInfo& input,
18                                                      const TensorInfo& output,
19                                                      const DepthToSpaceDescriptor& descriptor);
20 
21 class NeonDepthToSpaceWorkload : public NeonBaseWorkload<DepthToSpaceQueueDescriptor>
22 {
23 public:
24     NeonDepthToSpaceWorkload(const DepthToSpaceQueueDescriptor& descriptor, const WorkloadInfo& info);
25     void Execute() const override;
26 
27 private:
28     mutable arm_compute::NEDepthToSpaceLayer m_Layer;
29 };
30 
31 } // namespace armnn
32