| 16 | using namespace armcomputetensorutils; |
| 17 | |
| 18 | ClFillWorkload::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 | |
| 40 | void ClFillWorkload::Execute() const |
| 41 | { |
nothing calls this directly
no test coverage detected