22.08
|
#include "ExecuteNetworkProgramOptions.hpp"
#include "NetworkExecutionUtils/NetworkExecutionUtils.hpp"
#include <armnn/BackendRegistry.hpp>
#include <armnn/Exceptions.hpp>
#include <armnn/utility/Assert.hpp>
#include <armnn/utility/StringUtils.hpp>
#include <armnn/Logging.hpp>
#include <fmt/format.h>
Go to the source code of this file.
Functions | |
bool | CheckOption (const cxxopts::ParseResult &result, const char *option) |
void | CheckOptionDependency (const cxxopts::ParseResult &result, const char *option, const char *required) |
void | CheckOptionDependencies (const cxxopts::ParseResult &result) |
void | RemoveDuplicateDevices (std::vector< armnn::BackendId > &computeDevices) |
std::vector< armnn::BackendId > | GetBackendIDs (const std::vector< std::string > &backendStringsVec) |
Takes a vector of backend strings and returns a vector of backendIDs. More... | |
template<typename optionType > | |
optionType | GetOptionValue (std::string &&optionName, const cxxopts::ParseResult &result) |
Provides a segfault safe way to get cxxopts option values by checking if the option was defined. More... | |
void | LogAndThrowFatal (std::string errorMessage) |
void | CheckRequiredOptions (const cxxopts::ParseResult &result) |
void | CheckForDeprecatedOptions (const cxxopts::ParseResult &result) |
void CheckForDeprecatedOptions | ( | const cxxopts::ParseResult & | result | ) |
Definition at line 137 of file ExecuteNetworkProgramOptions.cpp.
References ARMNN_LOG.
Referenced by ProgramOptions::ParseOptions().
bool CheckOption | ( | const cxxopts::ParseResult & | result, |
const char * | option | ||
) |
Definition at line 17 of file ExecuteNetworkProgramOptions.cpp.
Referenced by CheckOptionDependency().
void CheckOptionDependencies | ( | const cxxopts::ParseResult & | result | ) |
Definition at line 51 of file ExecuteNetworkProgramOptions.cpp.
References CheckOptionDependency().
Referenced by ProgramOptions::ParseOptions().
void CheckOptionDependency | ( | const cxxopts::ParseResult & | result, |
const char * | option, | ||
const char * | required | ||
) |
Definition at line 30 of file ExecuteNetworkProgramOptions.cpp.
References CheckOption().
Referenced by CheckOptionDependencies().
void CheckRequiredOptions | ( | const cxxopts::ParseResult & | result | ) |
Definition at line 114 of file ExecuteNetworkProgramOptions.cpp.
References ARMNN_LOG.
Referenced by ProgramOptions::ParseOptions().
std::vector<armnn::BackendId> GetBackendIDs | ( | const std::vector< std::string > & | backendStringsVec | ) |
Takes a vector of backend strings and returns a vector of backendIDs.
Removes duplicate entries. Can handle backend strings that contain multiple backends separated by comma e.g "CpuRef,CpuAcc"
Definition at line 78 of file ExecuteNetworkProgramOptions.cpp.
References ParseStringList(), and RemoveDuplicateDevices().
Referenced by CheckAccuracy(), and ProgramOptions::ParseOptions().
optionType GetOptionValue | ( | std::string && | optionName, |
const cxxopts::ParseResult & | result | ||
) |
Provides a segfault safe way to get cxxopts option values by checking if the option was defined.
If the option wasn't defined it returns an empty object.
Definition at line 99 of file ExecuteNetworkProgramOptions.cpp.
void LogAndThrowFatal | ( | std::string | errorMessage | ) |
Definition at line 109 of file ExecuteNetworkProgramOptions.cpp.
Referenced by ProgramOptions::ValidateRuntimeOptions().
void RemoveDuplicateDevices | ( | std::vector< armnn::BackendId > & | computeDevices | ) |
Definition at line 56 of file ExecuteNetworkProgramOptions.cpp.
References armnn::Undefined.
Referenced by GetBackendIDs().