Skip to content

Commit 41548a0

Browse files
committed
Merge pull request opencv#17993 from Maxim-Doronin:vpu/mdoronin/refactor_vpu_configs
2 parents 5108e3c + 7fe87d9 commit 41548a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/dnn/src/ie_ngraph.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net)
684684
}
685685
std::map<std::string, std::string> config;
686686
if (device_name == "MYRIAD") {
687+
#if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
688+
config.emplace("MYRIAD_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
689+
#else
687690
config.emplace("VPU_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
691+
#endif
688692
}
689693

690694
bool isHetero = device_name == "FPGA";

0 commit comments

Comments
 (0)