blob: a0be512f9b3fe8a57e0f98c6786efe8a54af42b2 [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
13class NeonDepthwiseConvolutionUint8Workload : public Uint8Workload<DepthwiseConvolution2dQueueDescriptor>
14{
15public:
16 NeonDepthwiseConvolutionUint8Workload(const DepthwiseConvolution2dQueueDescriptor& descriptor,
17 const WorkloadInfo& info);
18 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