setting tput as the default performance mode only for AUTO, excluding MULTI plugin. (#12083)
Signed-off-by: ywang2 <yang4.wang@intel.com> Co-authored-by: Chen Peter <peter.chen@intel.com>
This commit is contained in:
parent
7fe3ab0328
commit
0c7282a1f5
@ -107,8 +107,10 @@ std::vector<DeviceInformation> MultiDeviceInferencePlugin::ParseMetaDevices(cons
|
||||
tconfig[PluginConfigParams::KEY_DEVICE_ID] = deviceIDLocal;
|
||||
}
|
||||
auto deviceConfig = GetCore()->GetSupportedConfig(deviceName, tconfig);
|
||||
if (deviceConfig.find(PluginConfigParams::KEY_PERFORMANCE_HINT) == deviceConfig.end() && tconfig.find(deviceName) == tconfig.end()) {
|
||||
// setting tput as the default performance mode if no hints setting for AUTO plugin and no properties specified for target device.
|
||||
if (GetName() == "AUTO" && deviceConfig.find(PluginConfigParams::KEY_PERFORMANCE_HINT) == deviceConfig.end() &&
|
||||
tconfig.find(deviceName) == tconfig.end()) {
|
||||
// setting tput as the default performance mode if no hints setting for AUTO plugin and no properties
|
||||
// specified for target device.
|
||||
deviceConfig[PluginConfigParams::KEY_PERFORMANCE_HINT] = PluginConfigParams::THROUGHPUT;
|
||||
}
|
||||
return deviceConfig;
|
||||
|
Loading…
Reference in New Issue
Block a user