22.08
|
Go to the source code of this file.
Functions | |
std::vector< std::string > | ParseStringList (const std::string &inputString, const char *delimiter) |
Splits a given string at every accurance of delimiter into a vector of string. More... | |
bool | CheckInferenceTimeThreshold (const std::chrono::duration< double, std::milli > &duration, const double &thresholdTime) |
Given a measured duration and a threshold time tell the user whether we succeeded or not. More... | |
bool | ValidatePath (const std::string &file, const bool expectFile) |
Verifies if the given string is a valid path. More... | |
std::vector< unsigned int > | ParseArray (std::istream &stream) |
bool | ValidatePaths (const std::vector< std::string > &fileVec, const bool expectFile) |
Verifies if a given vector of strings are valid paths. More... | |
void | LogAndThrow (std::string eMsg) |
bool CheckInferenceTimeThreshold | ( | const std::chrono::duration< double, std::milli > & | duration, |
const double & | thresholdTime | ||
) |
Given a measured duration and a threshold time tell the user whether we succeeded or not.
duration | the measured inference duration. |
thresholdTime | the threshold time in milliseconds. |
Definition at line 17 of file NetworkExecutionUtils.cpp.
References ARMNN_LOG.
Referenced by ArmNNExecutor::ArmNNExecutor(), and TfLiteExecutor::Execute().
void LogAndThrow | ( | std::string | eMsg | ) |
Definition at line 75 of file NetworkExecutionUtils.cpp.
References ARMNN_LOG.
Referenced by ArmNNExecutor::CompareAndPrintResult(), DequantizeArray(), TfLiteExecutor::Execute(), ArmNNExecutor::PrintNetworkInfo(), and TfLiteExecutor::TfLiteExecutor().
std::vector<unsigned int> ParseArray | ( | std::istream & | stream | ) |
Definition at line 55 of file NetworkExecutionUtils.cpp.
References armnn::numeric_cast().
Referenced by CheckRequestedBackendsAreValid(), and ProgramOptions::ParseOptions().
std::vector<std::string> ParseStringList | ( | const std::string & | inputString, |
const char * | delimiter | ||
) |
Splits a given string at every accurance of delimiter into a vector of string.
Definition at line 10 of file NetworkExecutionUtils.cpp.
References armnn::stringUtils::StringTrimCopy().
Referenced by CheckRequestedBackendsAreValid(), GetBackendIDs(), and ProgramOptions::ParseOptions().
bool ValidatePath | ( | const std::string & | file, |
const bool | expectFile | ||
) |
Verifies if the given string is a valid path.
Reports invalid paths to std::err.
file | string - A string containing the path to check |
expectFile | bool - If true, checks for a regular file. |
Definition at line 40 of file NetworkExecutionUtils.cpp.
Referenced by CheckClTuningParameter(), DequantizeArray(), and ValidatePaths().
bool ValidatePaths | ( | const std::vector< std::string > & | fileVec, |
const bool | expectFile | ||
) |
Verifies if a given vector of strings are valid paths.
Reports invalid paths to std::err.
fileVec | vector of string - A vector of string containing the paths to check |
expectFile | bool - If true, checks for a regular file. |
Definition at line 62 of file NetworkExecutionUtils.cpp.
References ValidatePath().
Referenced by DequantizeArray(), and ExecuteNetworkParams::ValidateParams().