MCPcopy Create free account
hub / github.com/ARM-software/armnn / ClFillWorkload

Method ClFillWorkload

src/backends/cl/workloads/ClFillWorkload.cpp:18–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16using namespace armcomputetensorutils;
17
18ClFillWorkload::ClFillWorkload(const FillQueueDescriptor& descriptor,
19 const WorkloadInfo& info,
20 const arm_compute::CLCompileContext& clCompileContext)
21 : ClBaseWorkload<FillQueueDescriptor>(descriptor, info)
22{
23 // Report Profiling Details
24 ARMNN_REPORT_PROFILING_WORKLOAD_DESC("ClFillWorkload_Construct",
25 descriptor.m_Parameters,
26 info,
27 this->GetGuid());
28
29 m_Data.ValidateInputsOutputs("ClFillWorkload", 1, 1);
30
31 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(this->m_Data.m_Outputs[0])->GetTensor();
32 arm_compute::PixelValue pixelValue = GetPixelValue(output.info(), descriptor.m_Parameters.m_Value);
33
34 {
35 ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID("ClFillWorkload_configure");
36 m_Layer.configure(clCompileContext, &output, pixelValue);
37 }
38}
39
40void ClFillWorkload::Execute() const
41{

Callers

nothing calls this directly

Calls 5

GetPixelValueFunction · 0.85
ValidateInputsOutputsMethod · 0.80
GetTensorMethod · 0.80
GetGuidMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected