blob: 4ec8c1dc3753e66bf3916a888e4da94e858453b1 [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
8#include <backends/NeonWorkloadUtils.hpp>
9
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