Release 18.08
[platform/upstream/armnn.git] / src / armnn / backends / NeonWorkloads / NeonReshapeUint8Workload.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 "NeonReshapeUint8Workload.hpp"
7
8
9
10
11 namespace armnn
12 {
13 NeonReshapeUint8Workload::NeonReshapeUint8Workload(const ReshapeQueueDescriptor& descriptor,
14                                                    const WorkloadInfo& info)
15     : Uint8Workload<ReshapeQueueDescriptor>(descriptor, info)
16 {
17     m_Data.ValidateInputsOutputs("NeonReshapeUint8Workload", 1, 1);
18
19     arm_compute::ITensor& input = boost::polymorphic_downcast<INeonTensorHandle*>(m_Data.m_Inputs[0])->GetTensor();
20     arm_compute::ITensor& output = boost::polymorphic_downcast<INeonTensorHandle*>(m_Data.m_Outputs[0])->GetTensor();
21
22     m_Layer.configure(&input, &output);
23 }
24
25 void NeonReshapeUint8Workload::Execute() const
26 {
27     ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonReshapeUint8Workload_Execute");
28     m_Layer.run();
29 }
30 } //namespace armnn