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:
1 parent
a3e2dbe353
commit
400e9ad916
154 files changed
+2032
-867
No files matched your search
@@ -516,20 +516,6 @@ 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('(');
|
||||
@@ -560,7 +546,7 @@ DeviceInformation AutoBatchInferencePlugin::ParseMetaDevice(const std::string& d
|
||||
tconfig[PluginConfigParams::KEY_DEVICE_ID] = deviceIDLocal;
|
||||
}
|
||||
|
||||
return GetSupportedConfig(tconfig, deviceName);
|
||||
return GetCore()->GetSupportedConfig(deviceName, tconfig);
|
||||
};
|
||||
|
||||
auto metaDevice = ParseBatchDevice(devicesBatchCfg);
|
||||
|
||||
Reference in new issue
Block a user