diff --git a/modules/dnn/src/ie_ngraph.cpp b/modules/dnn/src/ie_ngraph.cpp index 82d8b9ca73cc090d208b16a59f4ffad8bbbcec69..84b984ac97a9a9c7550aa1d3bd3bfeddc596ab6e 100644 --- a/modules/dnn/src/ie_ngraph.cpp +++ b/modules/dnn/src/ie_ngraph.cpp @@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net) } std::map 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";