ArmNN
 24.02
MemCopyWorkload.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include "TensorHandle.hpp"
8 #include "Workload.hpp"
9 
10 #include <utility>
11 
12 namespace armnn
13 {
14 
15 class CopyMemGenericWorkload : public BaseWorkload<MemCopyQueueDescriptor>
16 {
17 public:
19  void Execute() const override;
20  void ExecuteAsync(ExecutionData& executionData) override;
21 
22 private:
23  using TensorHandlePair = std::pair<const ITensorHandle*, ITensorHandle*>;
24  std::vector<TensorHandlePair> m_TensorHandlePairs;
25 };
26 
27 } //namespace armnn
armnn::CopyMemGenericWorkload::ExecuteAsync
void ExecuteAsync(ExecutionData &executionData) override
Definition: MemCopyWorkload.cpp:66
armnn::WorkloadInfo
Contains information about TensorInfos of a layer.
Definition: WorkloadInfo.hpp:16
Workload.hpp
armnn::CopyMemGenericWorkload
Definition: MemCopyWorkload.hpp:15
armnn::BoostLogSeverityMapping::info
@ info
armnn::MemCopyQueueDescriptor
Definition: WorkloadData.hpp:86
armnn::BaseWorkload
Definition: Workload.hpp:33
TensorHandle.hpp
armnn::CopyMemGenericWorkload::CopyMemGenericWorkload
CopyMemGenericWorkload(const MemCopyQueueDescriptor &descriptor, const WorkloadInfo &info)
Definition: MemCopyWorkload.cpp:44
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition: 01_00_quick_start.dox:6
armnn::CopyMemGenericWorkload::Execute
void Execute() const override
Definition: MemCopyWorkload.cpp:51
armnn::experimental::ExecutionData
Definition: ExecutionData.hpp:14