22.02
|
Holds all parameters necessary to execute a network Check ExecuteNetworkProgramOptions.cpp for a description of each parameter. More...
#include <ExecuteNetworkParams.hpp>
Public Types | |
enum | TfLiteExecutor { ArmNNTfLiteParser, ArmNNTfLiteDelegate, TfliteInterpreter } |
using | TensorShapePtr = std::unique_ptr< armnn::TensorShape > |
Public Member Functions | |
void | ValidateParams () |
Holds all parameters necessary to execute a network Check ExecuteNetworkProgramOptions.cpp for a description of each parameter.
Definition at line 17 of file ExecuteNetworkParams.hpp.
using TensorShapePtr = std::unique_ptr<armnn::TensorShape> |
Definition at line 19 of file ExecuteNetworkParams.hpp.
|
strong |
Enumerator | |
---|---|
ArmNNTfLiteParser | |
ArmNNTfLiteDelegate | |
TfliteInterpreter |
Definition at line 21 of file ExecuteNetworkParams.hpp.
void ValidateParams | ( | ) |
Definition at line 111 of file ExecuteNetworkParams.cpp.
References ARMNN_LOG, CheckClTuningParameter(), CheckModelFormat(), armnn::DetailsWithEvents, armnn::InferAndValidate, IsModelBinary(), m_CachedNetworkFilePath, m_ComputeDevices, OptimizerOptions::m_Debug, m_DynamicBackendsPath, m_EnableBf16TurboMode, m_EnableFastMath, m_EnableFp16TurboMode, m_EnableLayerDetails, m_EnableProfiling, m_GenerateTensorData, m_InferOutputShape, m_InputNames, m_InputTensorDataFilePaths, m_InputTensorShapes, m_InputTypes, m_IsModelBinary, m_Iterations, m_MLGOTuningFilePath, m_ModelFormat, OptimizerOptions::m_ModelOptions, m_ModelPath, m_NumberOfThreads, m_OutputNames, m_OutputTensorFiles, m_OutputTypes, m_PrintIntermediate, OptimizerOptions::m_ProfilingEnabled, OptimizerOptions::m_ReduceFp32ToBf16, OptimizerOptions::m_ReduceFp32ToFp16, m_SaveCachedNetwork, OptimizerOptions::m_shapeInferenceMethod, m_ThresholdTime, m_TuningLevel, m_TuningPath, DelegateOptions::SetDynamicBackendsPath(), DelegateOptions::SetGpuProfilingState(), DelegateOptions::SetInternalProfilingParams(), DelegateOptions::SetOptimizerOptions(), DelegateOptions::SetSerializeToDot(), armnn::ValidateOnly, and ValidatePaths().
Referenced by ProgramOptions::ValidateExecuteNetworkParams().
std::string m_CachedNetworkFilePath |
Definition at line 28 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
std::vector<armnn::BackendId> m_ComputeDevices |
Definition at line 29 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
bool m_Concurrent |
Definition at line 30 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ParseOptions(), and ProgramOptions::ProgramOptions().
bool m_DequantizeOutput |
Definition at line 31 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), and ProgramOptions::ProgramOptions().
bool m_DontPrintOutputs |
Definition at line 57 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), and ProgramOptions::ProgramOptions().
std::string m_DynamicBackendsPath |
Definition at line 32 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
bool m_EnableBf16TurboMode |
Definition at line 33 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_EnableDelegate = false |
Definition at line 40 of file ExecuteNetworkParams.hpp.
Referenced by ProgramOptions::ParseOptions(), and ProgramOptions::ProgramOptions().
bool m_EnableFastMath = false |
Definition at line 34 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_EnableFp16TurboMode |
Definition at line 35 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_EnableLayerDetails = false |
Definition at line 36 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_EnableProfiling |
Definition at line 37 of file ExecuteNetworkParams.hpp.
Referenced by main(), MainImpl(), ProgramOptions::ParseOptions(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_GenerateTensorData |
Definition at line 38 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
bool m_InferOutputShape = false |
Definition at line 39 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
std::vector<std::string> m_InputNames |
Definition at line 41 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
std::vector<std::string> m_InputTensorDataFilePaths |
Definition at line 42 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
std::vector<TensorShapePtr> m_InputTensorShapes |
Definition at line 43 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
std::vector<std::string> m_InputTypes |
Definition at line 44 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
bool m_IsModelBinary |
Definition at line 45 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), and ValidateParams().
size_t m_Iterations |
Definition at line 46 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), ProgramOptions::ProgramOptions(), and ValidateParams().
std::string m_MLGOTuningFilePath |
Definition at line 65 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ParseOptions(), ProgramOptions::ProgramOptions(), and ValidateParams().
std::string m_ModelFormat |
Definition at line 47 of file ExecuteNetworkParams.hpp.
Referenced by main(), ProgramOptions::ParseOptions(), and ValidateParams().
std::string m_ModelPath |
Definition at line 48 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
unsigned int m_NumberOfThreads |
Definition at line 49 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_OutputDetailsOnlyToStdOut |
Definition at line 51 of file ExecuteNetworkParams.hpp.
Referenced by main(), MainImpl(), and ProgramOptions::ProgramOptions().
bool m_OutputDetailsToStdOut |
Definition at line 50 of file ExecuteNetworkParams.hpp.
Referenced by main(), MainImpl(), and ProgramOptions::ProgramOptions().
std::vector<std::string> m_OutputNames |
Definition at line 52 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
std::vector<std::string> m_OutputTensorFiles |
Definition at line 53 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
std::vector<std::string> m_OutputTypes |
Definition at line 54 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ParseOptions(), and ValidateParams().
bool m_ParseUnsupported = false |
Definition at line 55 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), and ProgramOptions::ProgramOptions().
bool m_PrintIntermediate |
Definition at line 56 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
bool m_QuantizeInput |
Definition at line 58 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), and ProgramOptions::ProgramOptions().
bool m_SaveCachedNetwork |
Definition at line 59 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
size_t m_SimultaneousIterations |
Definition at line 60 of file ExecuteNetworkParams.hpp.
Referenced by ProgramOptions::ParseOptions(), and ProgramOptions::ProgramOptions().
size_t m_SubgraphId |
Definition at line 61 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), and ProgramOptions::ProgramOptions().
TfLiteExecutor m_TfLiteExecutor |
Definition at line 66 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), main(), and ProgramOptions::ParseOptions().
size_t m_ThreadPoolSize |
Definition at line 67 of file ExecuteNetworkParams.hpp.
Referenced by MainImpl(), ProgramOptions::ParseOptions(), and ProgramOptions::ProgramOptions().
double m_ThresholdTime |
Definition at line 62 of file ExecuteNetworkParams.hpp.
Referenced by CheckInferenceTimeThreshold(), MainImpl(), ProgramOptions::ProgramOptions(), and ValidateParams().
int m_TuningLevel |
Definition at line 63 of file ExecuteNetworkParams.hpp.
Referenced by ProgramOptions::ParseOptions(), ProgramOptions::ProgramOptions(), and ValidateParams().
std::string m_TuningPath |
Definition at line 64 of file ExecuteNetworkParams.hpp.
Referenced by ProgramOptions::ParseOptions(), ProgramOptions::ProgramOptions(), and ValidateParams().