ArmNN
 21.02
NeonDepthwiseConvolutionWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 
10 #include <arm_compute/runtime/IFunction.h>
11 #include <arm_compute/runtime/Tensor.h>
12 
13 #include <memory>
14 
15 namespace armnn
16 {
17 
19  const TensorInfo& output,
20  const DepthwiseConvolution2dDescriptor& descriptor,
21  const TensorInfo& weights,
22  const Optional<TensorInfo>& biases,
23  const ActivationDescriptor* activationDescriptor
24  = nullptr);
25 
26 class NeonDepthwiseConvolutionWorkload : public BaseWorkload<DepthwiseConvolution2dQueueDescriptor>
27 {
28 public:
30  const WorkloadInfo& info);
31 
32  virtual void Execute() const override;
33 
34 private:
35  mutable std::unique_ptr<arm_compute::IFunction> m_pDepthwiseConvolutionLayer;
36 
37  std::unique_ptr<arm_compute::Tensor> m_KernelTensor;
38  std::unique_ptr<arm_compute::Tensor> m_BiasTensor;
39 
40  void FreeUnusedTensors();
41 };
42 
43 } // namespace armnn
arm_compute::Status NeonDepthwiseConvolutionWorkloadValidate(const TensorInfo &input, const TensorInfo &output, const DepthwiseConvolution2dDescriptor &descriptor, const TensorInfo &weights, const Optional< TensorInfo > &biases, const ActivationDescriptor *activationDescriptor)
Copyright (c) 2021 ARM Limited and Contributors.
Status
enumeration
Definition: Types.hpp:26
Contains information about inputs and outputs to a layer.
NeonDepthwiseConvolutionWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info)