reenabling the Auto-Batching in the AUTO
This commit is contained in:
parent
fc15a3b13f
commit
a3f32744dc
@ -245,6 +245,11 @@ void MultiDeviceExecutableNetwork::TryToLoadNetWork(AutoLoadContext& context,
|
||||
auto& deviceList = context.metaDevices;
|
||||
bool curDevIsCPU = (device.find("CPU") != std::string::npos);
|
||||
try {
|
||||
const auto& mode = deviceConfig.find(CONFIG_KEY(PERFORMANCE_HINT));
|
||||
if (mode != deviceConfig.end() && mode->second == CONFIG_VALUE(THROUGHPUT)
|
||||
&& device.find("GPU") != std::string::npos)
|
||||
deviceConfig[CONFIG_KEY(ALLOW_AUTO_BATCHING)] = CONFIG_VALUE(YES);
|
||||
|
||||
if (!modelPath.empty()) {
|
||||
context.executableNetwork = _core->LoadNetwork(modelPath, device, deviceConfig);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user