From 36f61f38790ed8ca6ddfcca73d291a5dd4b18a0d Mon Sep 17 00:00:00 2001 From: Maksim Doronin Date: Thu, 30 Jul 2020 17:46:37 +0300 Subject: [PATCH] [IE][VPU]: Refactor vpu configs backported commit: 7fe87d9a5b3aeda1ae449b57652462247c89ef4a --- modules/dnn/src/ie_ngraph.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/dnn/src/ie_ngraph.cpp b/modules/dnn/src/ie_ngraph.cpp index 82d8b9c..84b984a 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"; -- 2.7.4