aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/backends/RefWorkloads/RefReshapeUint8Workload.cpp
blob: 38742607cd98b2cdb93fb2f1c4eb1a78a7593e28 (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.
// See LICENSE file in the project root for full license information.
//

#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