[IE][VPU]: Refactor vpu configs

This commit is contained in:
Maksim Doronin 2020-07-30 17:46:37 +03:00
parent 949fe93d5a
commit 7fe87d9a5b

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";