Revert "OV2.0 c++ configuration API (#9829)" (#9860)

This reverts commit 50da8c4aed.
This commit is contained in:
Alexander Zhogov authored and GitHub committed 2022-01-24 11:29:09 +03:00
1 parent b738983c1f
commit 6c2d1e923c
154 files changed
+869 -2034

No files matched your search

+15 -1
View File
@@ -516,6 +516,20 @@ std::map<std::string, std::string> mergeConfigs(std::map<std::string, std::strin
} // namespace
std::map<std::string, std::string> AutoBatchInferencePlugin::GetSupportedConfig(
const std::map<std::string, std::string>& config,
const std::string& deviceName) const {
std::vector<std::string> supportedConfigKeys = GetCore()->GetMetric(deviceName, METRIC_KEY(SUPPORTED_CONFIG_KEYS));
std::map<std::string, std::string> supportedConfig;
for (auto&& key : supportedConfigKeys) {
auto itKey = config.find(key);
if (config.end() != itKey) {
supportedConfig[key] = itKey->second;
}
}
return supportedConfig;
}
DeviceInformation AutoBatchInferencePlugin::ParseBatchDevice(const std::string& deviceWithBatch) {
auto&& d = deviceWithBatch;
auto openingBracket = d.find_first_of('(');
@@ -546,7 +560,7 @@ DeviceInformation AutoBatchInferencePlugin::ParseMetaDevice(const std::string& d
tconfig[PluginConfigParams::KEY_DEVICE_ID] = deviceIDLocal;
}
return GetCore()->GetSupportedConfig(deviceName, tconfig);
return GetSupportedConfig(tconfig, deviceName);
};
auto metaDevice = ParseBatchDevice(devicesBatchCfg);