OpenVINO runtime Configuration API (#7750)
* New configuration API * Review fix * review coments * fixed device name map * fixed header * code stile * fixed optimization capabilities * flatten properties * dox fix * doc * merge conflicts * fixed merge conflicts
This commit is contained in:
@@ -107,11 +107,11 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
// Query supported metrics and print all of them
|
||||
slog::info << "\tSUPPORTED_METRICS: " << slog::endl;
|
||||
std::vector<std::string> supportedMetrics = core.get_metric(device, METRIC_KEY(SUPPORTED_METRICS));
|
||||
std::vector<std::string> supportedMetrics = core.get_property(device, METRIC_KEY(SUPPORTED_METRICS));
|
||||
for (auto&& metricName : supportedMetrics) {
|
||||
if (metricName != METRIC_KEY(SUPPORTED_METRICS) && metricName != METRIC_KEY(SUPPORTED_CONFIG_KEYS)) {
|
||||
slog::info << "\t\t" << metricName << " : " << slog::flush;
|
||||
print_any_value(core.get_metric(device, metricName));
|
||||
print_any_value(core.get_property(device, metricName));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -120,10 +120,10 @@ int main(int argc, char* argv[]) {
|
||||
supportedMetrics.end()) {
|
||||
slog::info << "\tSUPPORTED_CONFIG_KEYS (default values): " << slog::endl;
|
||||
std::vector<std::string> supportedConfigKeys =
|
||||
core.get_metric(device, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
|
||||
core.get_property(device, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
|
||||
for (auto&& configKey : supportedConfigKeys) {
|
||||
slog::info << "\t\t" << configKey << " : " << slog::flush;
|
||||
print_any_value(core.get_config(device, configKey));
|
||||
print_any_value(core.get_property(device, configKey));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user