From: Maksim Doronin Date: Thu, 30 Jul 2020 14:46:37 +0000 (+0300) Subject: [IE][VPU]: Refactor vpu configs X-Git-Tag: submit/tizen/20210224.033012~2^2~9^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36f61f38790ed8ca6ddfcca73d291a5dd4b18a0d;p=platform%2Fupstream%2Fopencv.git [IE][VPU]: Refactor vpu configs backported commit: 7fe87d9a5b3aeda1ae449b57652462247c89ef4a --- 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";