ArmNN
 20.02
MemSyncWorkload.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include <ResolveType.hpp>
7 
10 
11 #include <boost/cast.hpp>
12 
13 #include <cstring>
14 
15 namespace armnn
16 {
17 
19  const WorkloadInfo& info)
20  : BaseWorkload<MemSyncQueueDescriptor>(descriptor, info)
21 {
22  m_TensorHandle = descriptor.m_Inputs[0];
23 }
24 
26 {
27  ARMNN_SCOPED_PROFILING_EVENT(Compute::Undefined, "SyncMemGeneric_Execute");
28  m_TensorHandle->Map(true);
29  m_TensorHandle->Unmap();
30 }
31 
32 } //namespace armnn
void Execute() const override
Copyright (c) 2020 ARM Limited.
#define ARMNN_SCOPED_PROFILING_EVENT(backendId, name)
Definition: Profiling.hpp:169
SyncMemGenericWorkload(const MemSyncQueueDescriptor &descriptor, const WorkloadInfo &info)
virtual const void * Map(bool blocking=true) const =0
Map the tensor data for access.
virtual void Unmap() const =0
Unmap the tensor data.
Contains information about inputs and outputs to a layer.
std::vector< ITensorHandle * > m_Inputs