| // |
| // Copyright © 2017 Arm Ltd. All rights reserved. |
| // See LICENSE file in the project root for full license information. |
| // |
| |
| #pragma once |
| |
| #include "backends/ClWorkloadUtils.hpp" |
| |
| #include "arm_compute/runtime/MemoryManagerOnDemand.h" |
| |
| #include <memory> |
| |
| namespace armnn |
| { |
| |
| class ClConvolution2dFloat32Workload : public FloatWorkload<Convolution2dQueueDescriptor> |
| { |
| public: |
| ClConvolution2dFloat32Workload(const Convolution2dQueueDescriptor& descriptor, const WorkloadInfo& info, |
| std::shared_ptr<arm_compute::MemoryManagerOnDemand>& memoryManager); |
| void Execute() const override; |
| |
| private: |
| mutable arm_compute::CLConvolutionLayer m_ConvolutionLayer; |
| |
| std::unique_ptr<arm_compute::CLTensor> m_KernelTensor; |
| std::unique_ptr<arm_compute::CLTensor> m_BiasTensor; |
| |
| void FreeUnusedTensors(); |
| }; |
| |
| } //namespace armnn |
| |