mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
[IE][VPU]: Refactor vpu configs
This commit is contained in:
parent
949fe93d5a
commit
7fe87d9a5b
@ -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…
Reference in New Issue
Block a user