Release 18.08
[platform/upstream/armnn.git] / src / armnn / backends / ClWorkloads / ClFloorFloat32Workload.cpp
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
4 //
5
6 #include "ClFloorFloat32Workload.hpp"
7 #include "backends/ClTensorHandle.hpp"
8
9 namespace armnn
10 {
11
12 ClFloorFloat32Workload::ClFloorFloat32Workload(const FloorQueueDescriptor& descriptor, const WorkloadInfo& info)
13     : FloatWorkload<FloorQueueDescriptor>(descriptor, info)
14 {
15     m_Data.ValidateInputsOutputs("ClFloorFloat32Workload", 1, 1);
16
17     arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
18     arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
19
20     m_Layer.configure(&input, &output);
21 }
22
23 void ClFloorFloat32Workload::Execute() const
24 {
25     ARMNN_SCOPED_PROFILING_EVENT_CL("ClFloorFloat32Workload_Execute");
26     m_Layer.run();
27 }
28
29 } //namespace armnn