• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "RefReshapeWorkload.hpp"
7 #include "RefWorkloadUtils.hpp"
8 #include "Profiling.hpp"
9 
10 #include <cstring>
11 
12 namespace armnn
13 {
14 
Execute() const15 void RefReshapeWorkload::Execute() const
16 {
17     ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefReshapeWorkload_Execute");
18 
19     void* output = GetOutputTensorData<void>(0, m_Data);
20     const void* input = GetInputTensorData<void>(0, m_Data);
21     unsigned int numBytes = GetTensorInfo(m_Data.m_Inputs[0]).GetNumBytes();
22     memcpy(output, input, numBytes);
23 }
24 
25 } //namespace armnn
26