2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
6 #include "ClFloorFloatWorkload.hpp"
7 #include <backends/cl/ClTensorHandle.hpp>
9 #include "ClWorkloadUtils.hpp"
14 ClFloorFloatWorkload::ClFloorFloatWorkload(const FloorQueueDescriptor& descriptor, const WorkloadInfo& info)
15 : FloatWorkload<FloorQueueDescriptor>(descriptor, info)
17 m_Data.ValidateInputsOutputs("ClFloorFloatWorkload", 1, 1);
19 arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
20 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
22 m_Layer.configure(&input, &output);
25 void ClFloorFloatWorkload::Execute() const
27 ARMNN_SCOPED_PROFILING_EVENT_CL("ClFloorFloatWorkload_Execute");
28 RunClFunction(m_Layer, CHECK_LOCATION());