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 "RefReshapeUint8Workload.hpp" |
| 7 | |
| 8 | #include "RefWorkloadUtils.hpp" |
| 9 | |
| 10 | #include "Profiling.hpp" |
| 11 | |
| 12 | #include <cstring> |
| 13 | |
| 14 | namespace armnn |
| 15 | { |
| 16 | |
| 17 | void RefReshapeUint8Workload::Execute() const |
| 18 | { |
| 19 | ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefReshapeUint8Workload_Execute"); |
| 20 | |
| 21 | void* output = GetOutputTensorData<void>(0, m_Data); |
| 22 | const void* input = GetInputTensorData<void>(0, m_Data); |
| 23 | unsigned int numBytes = GetTensorInfo(m_Data.m_Inputs[0]).GetNumBytes(); |
| 24 | memcpy(output, input, numBytes); |
| 25 | } |
| 26 | |
| 27 | } //namespace armnn |