aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/RefReshapeUint8Workload.cpp
blob: 8f475f3db35225036c46845cacaa8e206cfdff0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//

#include "RefReshapeUint8Workload.hpp"

#include "RefWorkloadUtils.hpp"

#include "Profiling.hpp"

#include <cstring>

namespace armnn
{

void RefReshapeUint8Workload::Execute() const
{
    ARMNN_SCOPED_PROFILING_EVENT(Compute::CpuRef, "RefReshapeUint8Workload_Execute");

    void* output = GetOutputTensorData<void>(0, m_Data);
    const void* input = GetInputTensorData<void>(0, m_Data);
    unsigned int numBytes = GetTensorInfo(m_Data.m_Inputs[0]).GetNumBytes();
    memcpy(output, input, numBytes);
}

} //namespace armnn