blob: 8f475f3db35225036c46845cacaa8e206cfdff0b [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 "RefReshapeUint8Workload.hpp"
7
8#include "RefWorkloadUtils.hpp"
9
10#include "Profiling.hpp"
11
12#include <cstring>
13
14namespace armnn
15{
16
17void 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