struct InferenceEngine::PerfHintsConfig¶
Overview¶
#include <ie_performance_hints.hpp>
struct PerfHintsConfig
{
// fields
std::string ovPerfHint = "";
int ovPerfHintNumRequests = 0;
// methods
void SetConfig(const std::string& key, const std::string& value);
Parameter GetConfig(const std::string& key);
static std::vector<std::string> SupportedKeys();
static void CheckConfigAndValue(std::pair<const std::string, const std::string&> kvp);
static std::string CheckPerformanceHintValue(const std::string& val);
static int CheckPerformanceHintRequestValue(const std::string& val);
};
Detailed Documentation¶
Methods¶
void SetConfig(const std::string& key, const std::string& value)
Parses configuration key/value pair.
Parameters:
key |
configuration key |
value |
configuration values |
Parameter GetConfig(const std::string& key)
Return configuration value.
Parameters:
key |
configuration key |
Returns:
configuration value wrapped into Parameter
static std::vector<std::string> SupportedKeys()
Supported Configuration keys.
Returns:
vector of supported configuration keys
static void CheckConfigAndValue(std::pair<const std::string, const std::string&> kvp)
Checks configuration key and value, otherwise throws.
Parameters:
configuration |
key + value |
Returns:
void
static std::string CheckPerformanceHintValue(const std::string& val)
Returns configuration value if it is valid, otherwise throws.
Parameters:
configuration |
value |
Returns:
configuration value
static int CheckPerformanceHintRequestValue(const std::string& val)
Returns configuration value if it is valid, otherwise throws.
Parameters:
configuration |
value as string |
Returns:
configuration value as number