blob: 0109ea10cb4864431d72cb58babd3e5261fc1acb [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#pragma once
7
David Beck0dbe0ee2018-09-24 15:59:27 +01008#include <backends/neon/workloads/NeonWorkloadUtils.hpp>
telsoa014fcda012018-03-09 14:13:49 +00009
10namespace armnn
11{
12
arovir019e53a352018-08-31 15:26:35 +010013class NeonDepthwiseConvolutionFloatWorkload : public FloatWorkload<DepthwiseConvolution2dQueueDescriptor>
telsoa014fcda012018-03-09 14:13:49 +000014{
15public:
arovir019e53a352018-08-31 15:26:35 +010016 NeonDepthwiseConvolutionFloatWorkload(const DepthwiseConvolution2dQueueDescriptor& descriptor,
17 const WorkloadInfo& info);
telsoa014fcda012018-03-09 14:13:49 +000018 virtual void Execute() const override;
19
20private:
21 mutable std::unique_ptr<arm_compute::IFunction> m_pDepthwiseConvolutionLayer;
22
telsoa01c577f2c2018-08-31 09:22:23 +010023 std::unique_ptr<arm_compute::Tensor> m_KernelTensor;
24 std::unique_ptr<arm_compute::Tensor> m_BiasTensor;
25
26 void FreeUnusedTensors();
telsoa014fcda012018-03-09 14:13:49 +000027};
28
29} //namespace armnn
30
31
32
33