Nattapat Chaimanowong | cce11fc | 2018-10-12 16:30:56 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright © 2017 Arm Ltd. All rights reserved. |
| 3 | // SPDX-License-Identifier: MIT |
| 4 | // |
| 5 | |
| 6 | #include "NeonReshapeWorkload.hpp" |
| 7 | |
| 8 | namespace armnn |
| 9 | { |
| 10 | |
| 11 | NeonReshapeWorkload::NeonReshapeWorkload(const ReshapeQueueDescriptor& descriptor, |
| 12 | const WorkloadInfo& info) |
| 13 | : BaseWorkload<ReshapeQueueDescriptor>(descriptor, info) |
| 14 | { |
| 15 | m_Data.ValidateInputsOutputs("NeonReshapeWorkload", 1, 1); |
| 16 | |
| 17 | arm_compute::ITensor& input = boost::polymorphic_downcast<INeonTensorHandle*>(m_Data.m_Inputs[0])->GetTensor(); |
| 18 | arm_compute::ITensor& output = boost::polymorphic_downcast<INeonTensorHandle*>(m_Data.m_Outputs[0])->GetTensor(); |
| 19 | |
| 20 | m_Layer.configure(&input, &output); |
| 21 | } |
| 22 | |
| 23 | void NeonReshapeWorkload::Execute() const |
| 24 | { |
| 25 | ARMNN_SCOPED_PROFILING_EVENT_NEON("NeonReshapeWorkload_Execute"); |
| 26 | m_Layer.run(); |
| 27 | } |
| 28 | |
| 29 | } //namespace armnn |