ArmNN
 25.02
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
WorkloadInfo.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020-2023 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <armnn/Tensor.hpp>
8 
9 #include <vector>
10 
11 namespace armnn
12 {
13 
14 /// Contains information about TensorInfos of a layer.
15 /// This is needed at construction of workloads, but are not stored.
17 {
18  std::vector<TensorInfo> m_InputTensorInfos;
19  std::vector<TensorInfo> m_OutputTensorInfos;
20  std::string m_Name;
24 };
25 
26 struct MemoryInfo
27 {
28  unsigned int m_OutputSlotIndex;
29  size_t m_Size{ 0 };
30  size_t m_Alignment{ 64 };
31 };
32 
34 {
36 };
37 
38 } //namespace armnn
Copyright (c) 2021 ARM Limited and Contributors.
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
unsigned int m_OutputSlotIndex
armnn::Optional< std::vector< MemoryInfo > > m_IntraLayerTensors
Contains information about TensorInfos of a layer.
Optional< TensorInfo > m_BiasTensorInfo
std::vector< TensorInfo > m_OutputTensorInfos
Optional< std::string > m_ConvolutionMethod
std::vector< TensorInfo > m_InputTensorInfos
Optional< TensorInfo > m_WeightsTensorInfo