[IE][VPU]: Refactor vpu configs

backported commit: 7fe87d9a5b
pull/18518/head
Maksim Doronin 4 years ago committed by Alexander Alekhin
parent a5b8f163d7
commit 36f61f3879
  1. 4
      modules/dnn/src/ie_ngraph.cpp

@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net)
}
std::map<std::string, std::string> 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";

Loading…
Cancel
Save