From: Dmitry Kurtaev Date: Fri, 6 Dec 2019 16:34:54 +0000 (+0300) Subject: Fix HETERO:FPGA,CPU plugin for IE backend X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~20^2~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beb5b291b96960c3cdab389d31bc76d50cd94fd8;p=platform%2Fupstream%2Fopencv.git Fix HETERO:FPGA,CPU plugin for IE backend --- diff --git a/modules/dnn/src/op_inf_engine.cpp b/modules/dnn/src/op_inf_engine.cpp index 0a35194..c6f741f 100644 --- a/modules/dnn/src/op_inf_engine.cpp +++ b/modules/dnn/src/op_inf_engine.cpp @@ -750,11 +750,16 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::CNNNetwork& net) { if (layer->type == kOpenCVLayersType) { - layer->affinity = "CPU"; isHetero = true; +#if INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2019R3) + // Not sure about lower versions but in 2019R3 we do not need this + layer->affinity = "CPU"; } else + { layer->affinity = device_name; +#endif + } } } if (isHetero)