mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Merge pull request #17993 from Maxim-Doronin:vpu/mdoronin/refactor_vpu_configs
This commit is contained in:
commit
41548a091b
@ -684,7 +684,11 @@ void InfEngineNgraphNet::initPlugin(InferenceEngine::CNNNetwork& net)
|
|||||||
}
|
}
|
||||||
std::map<std::string, std::string> config;
|
std::map<std::string, std::string> config;
|
||||||
if (device_name == "MYRIAD") {
|
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));
|
config.emplace("VPU_DETECT_NETWORK_BATCH", CONFIG_VALUE(NO));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isHetero = device_name == "FPGA";
|
bool isHetero = device_name == "FPGA";
|
||||||
|
Loading…
Reference in New Issue
Block a user