Apply ov::execution_devices to GPU & CPU & AUTO BATCH & MULTI (#14109)

* Apply ov::execution_devices to GPU & CPU & AUTO BATCH & MULTI

* Apply ov::execution_devices to GNA

Co-authored-by: yanlan song <bell.song@intel.com>
This commit is contained in:
Wang Wangwang
2022-12-28 14:41:50 +08:00
committed by GitHub
parent 31d91033d9
commit b8636222c3
14 changed files with 110 additions and 14 deletions

View File

@@ -645,10 +645,13 @@ InferenceEngine::Parameter AutoBatchExecutableNetwork::GetMetric(const std::stri
{METRIC_KEY(OPTIMAL_NUMBER_OF_INFER_REQUESTS),
METRIC_KEY(SUPPORTED_METRICS),
METRIC_KEY(NETWORK_NAME),
METRIC_KEY(SUPPORTED_CONFIG_KEYS)});
METRIC_KEY(SUPPORTED_CONFIG_KEYS),
ov::execution_devices.name()});
} else if (name == METRIC_KEY(SUPPORTED_CONFIG_KEYS)) {
IE_SET_METRIC_RETURN(SUPPORTED_CONFIG_KEYS,
{CONFIG_KEY(AUTO_BATCH_TIMEOUT)}); // only timeout can be changed on the fly
} else if (name == ov::execution_devices) {
return _networkWithoutBatch->GetMetric(name);
} else {
IE_THROW() << "Unsupported Network metric: " << name;
}