ArmNN
 20.11
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 
17  std::vector<armnn::BackendId> m_ComputeDevices;
19  std::string m_DynamicBackendsPath;
21  bool m_EnableFastMath = false;
23  bool m_EnableLayerDetails = false;
26  bool m_InferOutputShape = false;
27  bool m_EnableDelegate = false;
28  std::vector<std::string> m_InputNames;
29  std::vector<std::string> m_InputTensorDataFilePaths;
30  std::vector<TensorShapePtr> m_InputTensorShapes;
31  std::vector<std::string> m_InputTypes;
33  size_t m_Iterations;
34  std::string m_ModelFormat;
35  std::string m_ModelPath;
36  std::vector<std::string> m_OutputNames;
37  std::vector<std::string> m_OutputTensorFiles;
38  std::vector<std::string> m_OutputTypes;
39  bool m_ParseUnsupported = false;
42  size_t m_SubgraphId;
45  std::string m_TuningPath;
46 
47  // Ensures that the parameters for ExecuteNetwork fit together
48  void ValidateParams();
49 };
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