Commit beb5b291 authored by Dmitry Kurtaev's avatar Dmitry Kurtaev

Fix HETERO:FPGA,CPU plugin for IE backend

parent c790779a
...@@ -750,11 +750,16 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::CNNNetwork& net) ...@@ -750,11 +750,16 @@ void InfEngineBackendNet::initPlugin(InferenceEngine::CNNNetwork& net)
{ {
if (layer->type == kOpenCVLayersType) if (layer->type == kOpenCVLayersType)
{ {
layer->affinity = "CPU";
isHetero = true; 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 else
{
layer->affinity = device_name; layer->affinity = device_name;
#endif
}
} }
} }
if (isHetero) if (isHetero)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment