blob: 645544b75d4d9bd55fef66e5c28a54d3bb82944f [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
3// See LICENSE file in the project root for full license information.
4//
5
arovir019e53a352018-08-31 15:26:35 +01006#include "ClReshapeFloatWorkload.hpp"
telsoa014fcda012018-03-09 14:13:49 +00007#include "backends/ClTensorHandle.hpp"
8#include "backends/CpuTensorHandle.hpp"
9
10namespace armnn
11{
12
arovir019e53a352018-08-31 15:26:35 +010013ClReshapeFloatWorkload::ClReshapeFloatWorkload(const ReshapeQueueDescriptor& descriptor, const WorkloadInfo& info)
telsoa01c577f2c2018-08-31 09:22:23 +010014 : FloatWorkload<ReshapeQueueDescriptor>(descriptor, info)
telsoa014fcda012018-03-09 14:13:49 +000015{
arovir019e53a352018-08-31 15:26:35 +010016 m_Data.ValidateInputsOutputs("ClReshapeFloatWorkload", 1, 1);
telsoa014fcda012018-03-09 14:13:49 +000017
18 arm_compute::ICLTensor& input = static_cast<IClTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
19 arm_compute::ICLTensor& output = static_cast<IClTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
20
21 m_Layer.configure(&input, &output);
22}
23
arovir019e53a352018-08-31 15:26:35 +010024void ClReshapeFloatWorkload::Execute() const
telsoa014fcda012018-03-09 14:13:49 +000025{
arovir019e53a352018-08-31 15:26:35 +010026 ARMNN_SCOPED_PROFILING_EVENT_CL("ClReshapeFloatWorkload_Execute");
telsoa014fcda012018-03-09 14:13:49 +000027 m_Layer.run();
28}
29
30} //namespace armnn
31