[IE][VPU]: Refactor vpu configs

backported commit: 7fe87d9a5b
This commit is contained in:
Maksim Doronin
2020-07-30 17:46:37 +03:00
committed by Alexander Alekhin
parent a5b8f163d7
commit 36f61f3879
+4
View File
@@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net)
}
std::map<std::string, std::string> config;
if (device_name == "MYRIAD") {
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
config.emplace("MYRIAD_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
#else
config.emplace("VPU_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
#endif
}
bool isHetero = device_name == "FPGA";