Merge pull request #17993 from Maxim-Doronin:vpu/mdoronin/refactor_vpu_configs

This commit is contained in:
Alexander Alekhin 2020-08-17 19:20:04 +00:00
commit 41548a091b

View File

@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net)
} }
std::map<std::string, std::string> config; std::map<std::string, std::string> config;
if (device_name == "MYRIAD") { 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)); config.emplace("VPU_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
#endif
} }
bool isHetero = device_name == "FPGA"; bool isHetero = device_name == "FPGA";