2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
6 #include "ClReshapeWorkload.hpp"
7 #include <cl/ClTensorHandle.hpp>
8 #include <backendsCommon/CpuTensorHandle.hpp>
10 #include "ClWorkloadUtils.hpp"
15 ClReshapeWorkload::ClReshapeWorkload(const ReshapeQueueDescriptor& descriptor, const WorkloadInfo& info)
16 : BaseWorkload<ReshapeQueueDescriptor>(descriptor, info)
18 m_Data.ValidateInputsOutputs("ClReshapeWorkload", 1, 1);
20 arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
21 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
23 m_Layer.configure(&input, &output);
26 void ClReshapeWorkload::Execute() const
28 ARMNN_SCOPED_PROFILING_EVENT_CL("ClReshapeWorkload_Execute");
29 RunClFunction(m_Layer, CHECK_LOCATION());