telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
David Beck | 0dbe0ee | 2018-09-24 15:59:27 +0100 | [diff] [blame^] | 8 | #include <backends/neon/workloads/NeonWorkloadUtils.hpp> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
| 13 | class NeonDepthwiseConvolutionUint8Workload : public Uint8Workload<DepthwiseConvolution2dQueueDescriptor> |
| 14 | { |
| 15 | public: |
| 16 | NeonDepthwiseConvolutionUint8Workload(const DepthwiseConvolution2dQueueDescriptor& descriptor, |
| 17 | const WorkloadInfo& info); |
| 18 | virtual void Execute() const override; |
| 19 | |
| 20 | private: |
| 21 | mutable std::unique_ptr<arm_compute::IFunction> m_pDepthwiseConvolutionLayer; |
| 22 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 23 | std::unique_ptr<arm_compute::Tensor> m_KernelTensor; |
| 24 | std::unique_ptr<arm_compute::Tensor> m_BiasTensor; |
| 25 | |
| 26 | void FreeUnusedTensors(); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 27 | }; |
| 28 | |
| 29 | } //namespace armnn |