telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
David Beck | ecb56cd | 2018-09-05 12:52:57 +0100 | [diff] [blame] | 3 | // SPDX-License-Identifier: MIT |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 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 | { |
telsoa01 | c577f2c | 2018-08-31 09:22:23 +0100 | [diff] [blame] | 27 | ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonReshapeUint8Workload_Execute"); |
telsoa01 | 4fcda01 | 2018-03-09 14:13:49 +0000 | [diff] [blame] | 28 | m_Layer.run(); |
| 29 | } |
| 30 | } //namespace armnn |