ArmNN
 25.11
Loading...
Searching...
No Matches
RefConstantWorkload.cpp
Go to the documentation of this file.
1//
2// Copyright © 2019-2024 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
7
9
10#include <armnn/Types.hpp>
11
12#include <cstring>
13
14namespace armnn
15{
16
20
22{
23 Execute(m_Data.m_Outputs);
24}
25
26void RefConstantWorkload::Execute(std::vector<ITensorHandle*> outputs) const
27{
28 ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID("RefConstantWorkload_Execute");
29 memcpy(outputs[0]->Map(), m_Data.m_LayerOutput->GetConstTensor<void>(), GetTensorInfo(outputs[0]).GetNumBytes());
30}
31
32} //namespace armnn
#define ARMNN_SCOPED_PROFILING_EVENT_REF_NAME_GUID(label)
Creates a profiling event that uses GetGuid() and GetName() from the calling class.
const T * GetConstTensor() const
RefBaseWorkload(const ConstantQueueDescriptor &descriptor, const WorkloadInfo &info)
RefConstantWorkload(const ConstantQueueDescriptor &descriptor, const WorkloadInfo &info)
Copyright (c) 2021 ARM Limited and Contributors.
armnn::TensorInfo GetTensorInfo(unsigned int numberOfBatches, unsigned int numberOfChannels, unsigned int height, unsigned int width, const armnn::DataLayout dataLayout, const armnn::DataType dataType)
const ConstTensorHandle * m_LayerOutput
Contains information about TensorInfos of a layer.