blob: 41aa07fe49bf74dbcc3d823f2d460ae00de7a73a [file] [log] [blame]
telsoa014fcda012018-03-09 14:13:49 +00001//
2// Copyright © 2017 Arm Ltd. All rights reserved.
David Beckecb56cd2018-09-05 12:52:57 +01003// SPDX-License-Identifier: MIT
telsoa014fcda012018-03-09 14:13:49 +00004//
5
6#include "NeonReshapeUint8Workload.hpp"
7
8
9
10
11namespace armnn
12{
13NeonReshapeUint8Workload::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
25void NeonReshapeUint8Workload::Execute() const
26{
telsoa01c577f2c2018-08-31 09:22:23 +010027 ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonReshapeUint8Workload_Execute");
telsoa014fcda012018-03-09 14:13:49 +000028 m_Layer.run();
29}
30} //namespace armnn