telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // See LICENSE file in the project root for full license information. |
| 4 | // |
| 5 | |
| 6 | #pragma once |
| 7 | |
| 8 | #include <backends/NeonWorkloadUtils.hpp> |
| 9 | |
| 10 | namespace armnn |
| 11 | { |
| 12 | |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame^] | 13 | class NeonDepthwiseConvolutionFloat32Workload : public FloatWorkload<DepthwiseConvolution2dQueueDescriptor> |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 14 | { |
| 15 | public: |
| 16 | NeonDepthwiseConvolutionFloat32Workload(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 |
| 30 | |
| 31 | |
| 32 | |
| 33 | |