xref: /aosp_15_r20/external/armnn/src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "RefBaseWorkload.hpp"
6 #include <armnn/backends/WorkloadData.hpp>
7 #include "Decoders.hpp"
8 #include "Encoders.hpp"
9 
10 #include <armnn/TypesUtils.hpp>
11 
12 namespace armnn
13 {
14 
15 class RefDepthwiseConvolution2dWorkload : public RefBaseWorkload<DepthwiseConvolution2dQueueDescriptor> {
16 public:
17     explicit RefDepthwiseConvolution2dWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor,
18                                                const WorkloadInfo &info);
19     void Execute() const override;
20     void ExecuteAsync(ExecutionData& executionData)  override;
21 
22 private:
23     void Execute(std::vector<ITensorHandle*> inputs, std::vector<ITensorHandle*> outputs) const;
24 
25 };
26 
27 } //namespace armnn
28