ArmNN
 21.02
ExecuteNetworkParams.hpp
Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/BackendId.hpp>
9 #include <armnn/Tensor.hpp>
10 
11 /// Holds all parameters necessary to execute a network
12 /// Check ExecuteNetworkProgramOptions.cpp for a description of each parameter
14 {
15  using TensorShapePtr = std::unique_ptr<armnn::TensorShape>;
16 
18  std::vector<armnn::BackendId> m_ComputeDevices;
20  std::string m_DynamicBackendsPath;
22  bool m_EnableFastMath = false;
24  bool m_EnableLayerDetails = false;
27  bool m_InferOutputShape = false;
28  bool m_EnableDelegate = false;
29  std::vector<std::string> m_InputNames;
30  std::vector<std::string> m_InputTensorDataFilePaths;
31  std::vector<TensorShapePtr> m_InputTensorShapes;
32  std::vector<std::string> m_InputTypes;
34  size_t m_Iterations;
35  std::string m_ModelFormat;
36  std::string m_ModelPath;
37  unsigned int m_NumberOfThreads;
38  std::vector<std::string> m_OutputNames;
39  std::vector<std::string> m_OutputTensorFiles;
40  std::vector<std::string> m_OutputTypes;
41  bool m_ParseUnsupported = false;
45  size_t m_SubgraphId;
48  std::string m_TuningPath;
49  std::string m_MLGOTuningFilePath;
50 
51  // Ensures that the parameters for ExecuteNetwork fit together
52  void ValidateParams();
53 };
std::vector< std::string > m_InputTypes
std::unique_ptr< armnn::TensorShape > TensorShapePtr
std::vector< TensorShapePtr > m_InputTensorShapes
std::vector< std::string > m_OutputNames
std::vector< std::string > m_OutputTensorFiles
std::vector< armnn::BackendId > m_ComputeDevices
std::vector< std::string > m_OutputTypes
Holds all parameters necessary to execute a network Check ExecuteNetworkProgramOptions.cpp for a description of each parameter.
std::vector< std::string > m_InputNames
std::vector< std::string > m_InputTensorDataFilePaths