2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
6 #include "ClDepthwiseConvolutionFloat32Workload.hpp"
8 #include "backends/ClWorkloadUtils.hpp"
9 #include "backends/CpuTensorHandle.hpp"
14 ClDepthwiseConvolutionFloat32Workload::ClDepthwiseConvolutionFloat32Workload(
15 const DepthwiseConvolution2dQueueDescriptor& descriptor,
16 const WorkloadInfo& info)
17 : ClDepthwiseConvolutionBaseWorkload(descriptor, info)
19 InitializeArmComputeClTensorDataForFloatTypes(*m_KernelTensor, m_Data.m_Weight);
23 InitializeArmComputeClTensorDataForFloatTypes(*m_BiasTensor, m_Data.m_Bias);
26 m_DepthwiseConvolutionLayer->prepare();
30 void ClDepthwiseConvolutionFloat32Workload::Execute() const
32 ARMNN_SCOPED_PROFILING_EVENT_CL("ClDepthwiseConvolutionFloat32Workload_Execute");
33 BOOST_ASSERT(m_DepthwiseConvolutionLayer);
35 m_DepthwiseConvolutionLayer->run();